Package megamek.common.pathfinder
Class CachedEntityState
java.lang.Object
megamek.common.pathfinder.CachedEntityState
A transient class used to lazy-load "calculated" information from an entity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintintConvenience property to determine how many armor-breached legs this entity has.intgetRunMP()intintintintintintintintbooleanhasWorkingMisc(EquipmentFlag flag) booleanConvenience property to determine if the backing entity is amphibious.
-
Constructor Details
-
CachedEntityState
-
-
Method Details
-
getWalkMP
public int getWalkMP() -
getRunMP
public int getRunMP() -
getRunMPWithoutMASC
public int getRunMPWithoutMASC() -
getRunMPWithOneMASC
public int getRunMPWithOneMASC() -
getSprintMP
public int getSprintMP() -
getSprintMPWithOneMASC
public int getSprintMPWithOneMASC() -
getSprintMPWithoutMASC
public int getSprintMPWithoutMASC() -
getJumpMP
public int getJumpMP() -
getJumpMPWithTerrain
public int getJumpMPWithTerrain() -
hasWorkingMisc
-
getTorsoJumpJets
public int getTorsoJumpJets() -
getJumpMPNoGravity
public int getJumpMPNoGravity() -
getRunMPNoGravity
public int getRunMPNoGravity() -
isAmphibious
public boolean isAmphibious()Convenience property to determine if the backing entity is amphibious. -
getNumBreachedLegs
public int getNumBreachedLegs()Convenience property to determine how many armor-breached legs this entity has. By default, this is 0 unless the unit is a mek.
-