Class BipedMek

All Implemented Interfaces:
Serializable, ICarryable, Transporter, InGameObject, CombatRole, ForceAssignable, ITechnology, ITurnOrdered, PhaseUpdated, RoundUpdated, ActiveHeatSinkController, BTObject, Deployable, Fortifiable, RubbleClearer, Targetable
Direct Known Subclasses:
LandAirMek

public class BipedMek extends MekWithArms
See Also:
  • Constructor Details

    • BipedMek

      public BipedMek(String inGyroType, String inCockpitType)
    • BipedMek

      public BipedMek()
    • BipedMek

      public BipedMek(int inGyroType, int inCockpitType)
  • Method Details

    • isImmobile

      public boolean isImmobile()
      Description copied from class: Entity
      Returns true if the target is considered immobile (-4 to hit) as a target and also if it is considered immobile or temporarily or permanently immbolized for active movement. Overriding methods should check the status of the unit (shutdown, damage) and also the status of the crew (unconscious).
      Specified by:
      isImmobile in interface Targetable
      Overrides:
      isImmobile in class Entity
      Returns:
      True if the target is considered immobile as a target and unable to move actively.
    • getWalkMP

      public int getWalkMP(MPCalculationSetting mpCalculationSetting)
      Overrides:
      getWalkMP in class Entity
    • setInternal

      public void setInternal(int head, int ct, int t, int arm, int leg)
      Description copied from class: Mek
      Sets the internal structure for the Mek.
      Specified by:
      setInternal in class Mek
      Parameters:
      head - head
      ct - center torso
      t - right/left torso
      arm - right/left arm
      leg - right/left leg
    • addEntityBonuses

      public PilotingRollData addEntityBonuses(PilotingRollData roll)
      Description copied from class: Mek
      Add in any piloting skill mods
      Overrides:
      addEntityBonuses in class Mek
    • getNoOfSlots

      protected int[] getNoOfSlots()
      Specified by:
      getNoOfSlots in class Entity
    • getLocationNames

      public String[] getLocationNames()
      Specified by:
      getLocationNames in class Entity
    • getLocationAbbreviations

      public String[] getLocationAbbreviations()
      Specified by:
      getLocationAbbreviations in class Entity
    • getLegActuatorCost

      protected double getLegActuatorCost()
      Specified by:
      getLegActuatorCost in class Mek
    • hasRaisedShield

      public boolean hasRaisedShield(int location, boolean rear)
      Description copied from class: Entity
      Does the Mek have an active shield This should only be called after hasShield has been called.
      Overrides:
      hasRaisedShield in class Entity
    • canGoHullDown

      public boolean canGoHullDown()
      Description copied from class: Entity
      Method to determine if an entity is currently capable of going hull-down. Note, this is *not* whether the entity can ever go hull-down.
      Overrides:
      canGoHullDown in class Entity
      Returns:
      True if the entity is able to go hull-down, else false.
    • cannotStandUpFromHullDown

      public boolean cannotStandUpFromHullDown()
      Specified by:
      cannotStandUpFromHullDown in class Mek
      Returns:
      True if this Mek can NOT stand up from hull down. Checks leg and gyro damage.
    • hasMPReducingHardenedArmor

      public boolean hasMPReducingHardenedArmor()
      Specified by:
      hasMPReducingHardenedArmor in class Mek
    • getEntityType

      public long getEntityType()
      Overrides:
      getEntityType in class Mek
    • canZweihander

      public boolean canZweihander()
      Returns:
      True if this unit is capable of Zweihandering (weapon attack using both hands)