Tile.GroundHeight| Constructor and Description |
|---|
TileImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNeutral(Neutral neutral) |
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
|
int |
getInternalData() |
Altitude |
getLowestAltitude()
Tile::LowestAltitude() somewhat aggregates the MiniTile::Altitude() values of the 4 x 4
sub-miniTiles.
|
Markable |
getMarkable() |
Neutral |
getNeutral()
If any Neutral occupies this Tile, returns it (note that all the Tiles it occupies will then
return it).
|
int |
getStackedNeutralCount()
Returns the number of Neutrals that occupy this Tile (Cf.
|
static StaticMarkable |
getStaticMarkable() |
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.
|
void |
removeNeutral(Neutral neutral) |
void |
resetAreaId() |
void |
setAreaId(AreaId areaId) |
void |
setBuildable() |
void |
setDoodad() |
void |
setGroundHeight(int groundHeight) |
void |
setInternalData(int internalData) |
void |
setLowestAltitude(Altitude lowestAltitude) |
public static StaticMarkable getStaticMarkable()
public Markable getMarkable()
public boolean isBuildable()
TileMiniTile.isWalkable())isBuildable in interface Tilepublic AreaId getAreaId()
Tilepublic Altitude getLowestAltitude()
TilegetLowestAltitude in interface Tilepublic boolean isWalkable()
TileisWalkable in interface Tilepublic boolean isTerrain()
Tilepublic Tile.GroundHeight getGroundHeight()
TilegetGroundHeight in interface Tilepublic boolean isDoodad()
Tilepublic Neutral getNeutral()
TilegetNeutral in interface Tilepublic int getStackedNeutralCount()
TileTile.getNeutral()).getStackedNeutralCount in interface Tilepublic void setBuildable()
public void setGroundHeight(int groundHeight)
public void setDoodad()
public void addNeutral(Neutral neutral)
public void setAreaId(AreaId areaId)
public void resetAreaId()
public void setLowestAltitude(Altitude lowestAltitude)
public void removeNeutral(Neutral neutral)
public int getInternalData()
public void setInternalData(int internalData)