Package megamek.client.bot.princess
Class EntityState
java.lang.Object
megamek.client.bot.princess.EntityState
EntityState describes a hypothetical situation an entity could be in when firing
- Since:
- 12/18/13 9:28 AM
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the altitude this state describes: the unit's current altitude, or the final altitude of the move path this state was built from.intReturns the elevation above the hex floor this state describes: the entity's current elevation, or the final elevation of the move path this state was built from.intintgetHeat()intintbooleanbooleanbooleanisAero()booleanbooleanbooleanbooleanbooleanbooleanisProne()voidsetSecondaryFacing(int secondaryFacing) toString()
-
Method Details
-
getPosition
-
getElevation
public int getElevation()Returns the elevation above the hex floor this state describes: the entity's current elevation, or the final elevation of the move path this state was built from. Combine with the hex level for the absolute level, as the physical hit-table resolution does.- Returns:
- the elevation above the hex floor
-
getAltitude
public int getAltitude()Returns the altitude this state describes: the unit's current altitude, or the final altitude of the move path this state was built from.Distinct from
getElevation(), and the one that matters for aerospace. Aerospace units "never use elevations" even when flying directly over a ground mapsheet (TW p.91), so any air-to-air geometry - range, and the dead zone above all - is measured with this.- Returns:
- the altitude
-
getFacing
public int getFacing() -
getSecondaryFacing
public int getSecondaryFacing() -
getHeat
public int getHeat() -
getHexesMoved
public int getHexesMoved() -
isProne
public boolean isProne() -
isImmobile
public boolean isImmobile() -
isJumping
public boolean isJumping() -
getMovementType
-
setSecondaryFacing
public void setSecondaryFacing(int secondaryFacing) -
isBuilding
public boolean isBuilding() -
isAero
public boolean isAero() -
isAirborne
public boolean isAirborne() -
isAirborneAero
public boolean isAirborneAero() -
hasNaturalAptGun
public boolean hasNaturalAptGun() -
hasNaturalAptPiloting
public boolean hasNaturalAptPiloting() -
toString
-