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.
- Returns the minimum value. |
Markable |
getMarkable() |
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.
|
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()
Tile
MiniTile.isWalkable()
)isBuildable
in interface Tile
public AreaId getAreaId()
Tile
public Altitude getLowestAltitude()
Tile
getLowestAltitude
in interface Tile
public boolean isWalkable()
Tile
isWalkable
in interface Tile
public boolean isTerrain()
Tile
public Tile.GroundHeight getGroundHeight()
Tile
getGroundHeight
in interface Tile
public boolean isDoodad()
Tile
public Neutral getNeutral()
Tile
getNeutral
in interface Tile
public int getStackedNeutralCount()
Tile
Tile.getNeutral()
).getStackedNeutralCount
in interface Tile
public 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)