Class CachedEntityState

java.lang.Object
megamek.common.pathfinder.CachedEntityState

public class CachedEntityState extends Object
A transient class used to lazy-load "calculated" information from an entity
  • Constructor Details

    • CachedEntityState

      public CachedEntityState(Entity entity)
  • 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

      public boolean hasWorkingMisc(EquipmentFlag flag)
    • 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.