A tile is area that has size 1x1 within SCII maps.
More...
#include "Tile.h"
A tile is area that has size 1x1 within SCII maps.
◆ getDistNearestUnpathable()
float Overseer::Tile::getDistNearestUnpathable |
( |
| ) |
const |
Get the distance to nearest unpathable.
- Returns
- distance.
◆ getRegionId()
size_t Overseer::Tile::getRegionId |
( |
| ) |
|
Get the region id this tile is in.
- Returns
- regionid
◆ getTerrainHeight()
float Overseer::Tile::getTerrainHeight |
( |
| ) |
|
Get the z-axis value for the tile.
- Returns
- z-axis value.
◆ getTileTerrain()
TileTerrain Overseer::Tile::getTileTerrain |
( |
| ) |
|
Says what type of terrain it is on this tile, see TileTerrain for alteritives.
- Returns
- the terrain determed for THIS tile.
◆ setDistNearestUnpathable()
void Overseer::Tile::setDistNearestUnpathable |
( |
float |
dist | ) |
|
Set a distance to the nearest unpathable tile.
- Parameters
-
dist | The distance til unpathable. |
◆ setRegionId()
void Overseer::Tile::setRegionId |
( |
size_t |
regionId | ) |
|
Set the region id this tile belong to.
- Parameters
-
◆ setTerrainHeight()
void Overseer::Tile::setTerrainHeight |
( |
float |
height | ) |
|
Sets the z-axis value for the tile.
- Parameters
-
◆ setTileTerrain()
void Overseer::Tile::setTileTerrain |
( |
TileTerrain & |
terrain | ) |
|
If there exist build or wall.
/// Currentlyt no use \\
- Returns
- true if wall or build exist, false otherwise. Sets a terrain for THIS tile.
- Parameters
-
terrain | that will be set for the tile |
The documentation for this class was generated from the following files: