Class QuadVee

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

public class QuadVee extends QuadMek
Quad Mek that can convert into either tracked or wheeled vehicle mode.
See Also:
  • Field Details

  • Constructor Details

    • QuadVee

      public QuadVee()
    • QuadVee

      public QuadVee(int inGyroType, int inMotiveType)
  • Method Details

    • getSystemName

      public String getSystemName(int index)
      Overrides:
      getSystemName in class Mek
    • getRawSystemName

      public String getRawSystemName(int index)
      Overrides:
      getRawSystemName in class Mek
    • getMotiveType

      public int getMotiveType()
      Returns:
      MOTIVE_TRACK or MOTIVE_WHEEL
    • setMotiveType

      public void setMotiveType(int motiveType)
    • getMotiveTypeString

      public String getMotiveTypeString(int motiveType)
    • getMotiveTypeString

      public String getMotiveTypeString()
    • getMotiveTypeForString

      public static int getMotiveTypeForString(String inType)
    • getConstructionTechAdvancement

      public TechAdvancement getConstructionTechAdvancement()
      Description copied from class: Entity
      return - the base construction option tech advancement
      Overrides:
      getConstructionTechAdvancement in class Mek
    • hasTracks

      public boolean hasTracks()
      This is used to identify MEKs that have tracks mounted as industrial equipment.
      Overrides:
      hasTracks in class Mek
    • defaultCrewType

      public CrewType defaultCrewType()
      Overrides:
      defaultCrewType in class Mek
    • getWalkMP

      public int getWalkMP(MPCalculationSetting mpCalculationSetting)
      Overrides:
      getWalkMP in class QuadMek
    • getCruiseMP

      public int getCruiseMP(MPCalculationSetting mpCalculationSetting)
      In vehicle mode the QuadVee ignores actuator and hip criticalSlots, but is subject to track/wheel damage and various effects of vehicle motive damage.
    • getSprintMP

      public int getSprintMP(MPCalculationSetting mpCalculationSetting)
      Description copied from class: Entity
      Returns this entity's sprinting MP, modified according to the given setting. For units that can't sprint, this is equal to the modified run/flank MP.
      Overrides:
      getSprintMP in class Mek
      Returns:
      This entity's modified sprinting MP
    • getJumpMP

      public int getJumpMP(MPCalculationSetting mpCalculationSetting)
      Overrides:
      getJumpMP in class Mek
    • torsoJumpJets

      public int torsoJumpJets()
      Description copied from class: Mek
      Returns the number of (working) jump jets mounted in the torsos.
      Overrides:
      torsoJumpJets in class Mek
    • getActiveUMUCount

      public int getActiveUMUCount()
      UMUs do not function in vehicle mode
      Overrides:
      getActiveUMUCount in class Entity
      Returns:
      number intof usable UMU's
    • getArmedMPBoosters

      public MPBoosters getArmedMPBoosters()
      QuadVees cannot benefit from MASC or SuperChargers in vehicle mode
      Overrides:
      getArmedMPBoosters in class Entity
      Returns:
      does this Mek have Armed MASC, Supercharger or both?
    • getStandingHeat

      public int getStandingHeat()
      No movement heat generated in vehicle mode
      Overrides:
      getStandingHeat in class Mek
    • getWalkHeat

      public int getWalkHeat()
      Description copied from class: Entity
      get the heat generated by this Entity when walking/cruising
      Overrides:
      getWalkHeat in class Mek
    • getRunHeat

      public int getRunHeat()
      Description copied from class: Mek
      Depends on engine type
      Overrides:
      getRunHeat in class Mek
    • getSprintHeat

      public int getSprintHeat()
      Description copied from class: Mek
      Depends on engine type
      Overrides:
      getSprintHeat in class Mek
    • hasHipCrit

      public boolean hasHipCrit()
      Overrides to return false in vehicle mode. Technically it still has a hip crit, but it has no effect.
      Overrides:
      hasHipCrit in class Mek
    • nextConversionMode

      public EntityMovementMode nextConversionMode(EntityMovementMode afterMode)
      Description copied from class: Entity
      Entities that can convert movement modes (LAMs, QuadVees) report the next mode to assume when a convert movement command is processed. This provides a set order for cycling through available modes.
      Overrides:
      nextConversionMode in class Mek
      Parameters:
      afterMode - The movement mode to convert from.
      Returns:
      The next movement mode in the sequence.
    • setMovementMode

      public void setMovementMode(EntityMovementMode mode)
      Description copied from class: Entity
      Set the movement type of the entity
      Overrides:
      setMovementMode in class Entity
    • setConversionMode

      public void setConversionMode(int mode)
      Description copied from class: Entity
      Sets the unit to be in the given mode.
      Overrides:
      setConversionMode in class Entity
      Parameters:
      mode - The new mode
    • isEligibleForPavementOrRoadBonus

      public boolean isEligibleForPavementOrRoadBonus()
      Description copied from class: Entity
      Tanks and certain other units can get a +1 bonus to MP if their move is entirely on pavement.
      Overrides:
      isEligibleForPavementOrRoadBonus in class Mek
      Returns:
      true if the Entity gets a movement bonus on pavement
    • canFall

      public boolean canFall(boolean gyroLegDamage)
      Description copied from class: Mek
      QuadVees and LAMs may not have to make PSRs to avoid falling depending on their mode, and Meks using tracks for movement do not have to make PSRs for damage to gyro or leg actuators.
      Overrides:
      canFall in class Mek
      Parameters:
      gyroLegDamage - Whether the PSR is due to damage to gyro or leg actuators
      Returns:
      true if the Mek can fall due to failed PSR.
    • conversionCost

      public int conversionCost()
      Computes conversion cost.
      Returns:
      The cost to convert between quad and vehicle modes.
    • height

      public int height()
      In vehicle mode the QuadVee is at the same level as the terrain.
      Overrides:
      height in class Mek
    • getMaxElevationChange

      public int getMaxElevationChange()
      Description copied from class: Entity
      The maximum elevation change the entity can cross
      Overrides:
      getMaxElevationChange in class Mek
    • canChangeSecondaryFacing

      public boolean canChangeSecondaryFacing()
      Description copied from class: Entity
      Can this entity change secondary facing at all?
      Overrides:
      canChangeSecondaryFacing in class QuadMek
    • isValidSecondaryFacing

      public boolean isValidSecondaryFacing(int dir)
      Can this mek torso twist in the given direction?
      Overrides:
      isValidSecondaryFacing in class QuadMek
    • addEntityBonuses

      public PilotingRollData addEntityBonuses(PilotingRollData roll)
      Add in any piloting skill mods
      Overrides:
      addEntityBonuses in class QuadMek
    • usesTurnMode

      public boolean usesTurnMode()
      Description copied from class: Entity
      Only check for satisfied turn mode for Tanks or QuadVees in vehicle mode, or LAMs in AirMek mode. Except for LAMs, check whether advanced vehicle ground movement is enabled.
      Overrides:
      usesTurnMode in class Entity
      Returns:
      True if this Entity must make a driving check for turning too sharply.
    • canGoHullDown

      public boolean canGoHullDown()
      If the QuadVee is in vehicle mode (or converting to it) then it follows the rules for tanks going hull-down, which requires a fortified hex.
      Overrides:
      canGoHullDown in class QuadMek
      Returns:
      True if hull-down is enabled and the QuadVee is in a fortified hex.
    • isEligibleForPhysical

      public boolean isEligibleForPhysical()
      Cannot make any physical attacks in vehicle mode except charging, which is handled in the movement phase.
      Overrides:
      isEligibleForPhysical in class Entity
    • getTilesetModeString

      public String getTilesetModeString()
      Description copied from class: Entity
      Entities that use different sprites for different modes should override this
      Overrides:
      getTilesetModeString in class Entity
      Returns:
      a code identifying the mode, or an empty string for the default sprite
    • getEntityType

      public long getEntityType()
      Overrides:
      getEntityType in class QuadMek