Struct sc2::data::MapInfo [−][src]
pub struct MapInfo { /* fields omitted */ }Info about the terrain.
Methods
impl MapInfo[src]
impl MapInfopub fn get_dimensions(&self) -> (u32, u32)[src]
pub fn get_dimensions(&self) -> (u32, u32)Dimensions of the map.
pub fn get_pathing_grid(&self) -> &ImageData[src]
pub fn get_pathing_grid(&self) -> &ImageDataImage that reveals pathable tiles.
pub fn get_placement_grid(&self) -> &ImageData[src]
pub fn get_placement_grid(&self) -> &ImageDataImage that reveals placable tiles.
pub fn get_terrain_height(&self) -> &ImageData[src]
pub fn get_terrain_height(&self) -> &ImageDataImage that reveals terrain height.
pub fn get_playable_area(&self) -> Rect2[src]
pub fn get_playable_area(&self) -> Rect2Rectangle of the playable area.
pub fn get_enemy_start_locations(&self) -> &[Point2][src]
pub fn get_enemy_start_locations(&self) -> &[Point2]Starting locations of the enemy bases.
Trait Implementations
impl Debug for MapInfo[src]
impl Debug for MapInfofn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
fn fmt(&self, __arg_0: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for MapInfo[src]
impl Clone for MapInfo