Struct sc2::data::MapInfo [−][src]
pub struct MapInfo { /* fields omitted */ }
Info about the terrain.
Methods
impl MapInfo
[src]
impl MapInfo
pub 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) -> &ImageData
Image that reveals pathable tiles.
pub fn get_placement_grid(&self) -> &ImageData
[src]
pub fn get_placement_grid(&self) -> &ImageData
Image that reveals placable tiles.
pub fn get_terrain_height(&self) -> &ImageData
[src]
pub fn get_terrain_height(&self) -> &ImageData
Image that reveals terrain height.
pub fn get_playable_area(&self) -> Rect2
[src]
pub fn get_playable_area(&self) -> Rect2
Rectangle 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 MapInfo
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for MapInfo
[src]
impl Clone for MapInfo