public interface MiniTile
TerrainData.getMiniTile(WalkPosition)
Modifier and Type | Method and Description |
---|---|
Altitude |
getAltitude()
Distance in pixels between the center of this MiniTile and the center of the nearest
Sea-MiniTile
- Sea-miniTiles all have their Altitude() equal to 0. |
AreaId |
getAreaId()
For Sea and Lake miniTiles, returns 0
For Terrain miniTiles, returns a non zero id: - if (id > 0), id uniquely identifies the Area A that contains this MiniTile. |
boolean |
isLake()
Lake-miniTiles are unwalkable miniTiles that have their Altitude() > 0.
|
boolean |
isSea()
Sea-miniTiles are unwalkable miniTiles that have their altitude equal to 0.
|
boolean |
isTerrain()
Terrain miniTiles are just walkable miniTiles
|
boolean |
isWalkable()
Corresponds approximatively to BWAPI::isWalkable
The differences are: - For each BWAPI's unwalkable MiniTile, we also mark its 8 neighbors as not walkable. |
boolean isWalkable()
Tile.isBuildable()
)Altitude getAltitude()
boolean isSea()
boolean isLake()
boolean isTerrain()
AreaId getAreaId()