public final class Tile extends Object
TerrainData.getTile(TilePosition)
).Modifier and Type | Class and Description |
---|---|
static class |
Tile.GroundHeight
Corresponds to BWAPI::getGroundHeight divided by 2.
|
Modifier and Type | Method and Description |
---|---|
AreaId |
getAreaId()
This function somewhat aggregates the MiniTile::getAreaId() values of the 4 x 4 sub-miniTiles.
|
Tile.GroundHeight |
getGroundHeight()
Corresponds to BWAPI::getGroundHeight / 2
|
Altitude |
getLowestAltitude()
Tile::LowestAltitude() somewhat aggregates the MiniTile::Altitude() values of the 4 x 4
sub-miniTiles.
- Returns the minimum value. |
Neutral |
getNeutral()
If any Neutral occupies this Tile, returns it (note that all the Tiles it occupies will then
return it).
Otherwise, returns nullptr. - Neutrals are minerals, geysers and StaticBuildings (Cf. |
int |
getStackedNeutralCount()
Returns the number of Neutrals that occupy this Tile (Cf.
|
boolean |
isBuildable()
BWEM enforces the relation buildable ==> walkable (Cf.
|
boolean |
isDoodad()
Tells if this Tile is part of a doodad.
|
boolean |
isTerrain()
Tells if at least one of the sub-miniTiles is a Terrain-MiniTile.
|
boolean |
isWalkable()
Tells if at least one of the sub-miniTiles is Walkable.
|
public boolean isBuildable()
MiniTile.isWalkable()
)public AreaId getAreaId()
public Altitude getLowestAltitude()
public boolean isWalkable()
public boolean isTerrain()
public Tile.GroundHeight getGroundHeight()
public boolean isDoodad()
public Neutral getNeutral()
public int getStackedNeutralCount()
getNeutral()
).Copyright © 2022. All rights reserved.