Class SuperHeavyTank

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

public class SuperHeavyTank extends Tank
See Also:
  • Field Details

  • Constructor Details

    • SuperHeavyTank

      public SuperHeavyTank()
  • Method Details

    • getLocationAbbreviations

      public String[] getLocationAbbreviations()
      Overrides:
      getLocationAbbreviations in class Tank
    • getLocationNames

      public String[] getLocationNames()
      Overrides:
      getLocationNames in class Tank
    • getLocTurret

      public int getLocTurret()
      Overrides:
      getLocTurret in class Tank
    • getLocTurret2

      public int getLocTurret2()
      Overrides:
      getLocTurret2 in class Tank
    • getConstructionTechAdvancement

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

      public HitData rollHitLocation(int table, int side, int aimedLocation, AimingMode aimingMode, int cover)
      Description copied from class: Tank
      Rolls up a hit location
      Overrides:
      rollHitLocation in class Tank
    • sideTable

      public int sideTable(Coords src, boolean usePrior, int face)
      Overrides:
      sideTable in class Entity
    • locations

      public int locations()
      Description copied from class: Tank
      Returns the number of locations in the entity
      Overrides:
      locations in class Tank
    • height

      public int height()
      Description copied from class: Entity
      Returns the height of the unit, that is, how many levels above its elevation it is for LOS purposes. Default is 0.
      Overrides:
      height in class Entity
    • isSuperHeavy

      public boolean isSuperHeavy()
      Overrides:
      isSuperHeavy in class Entity
      Returns:
      True if this unit counts as superheavy (Combat Vehicles and Meks) or as a Large Support Vehicle.
    • getNoOfSlots

      public int[] getNoOfSlots()
      Overrides:
      getNoOfSlots in class Tank
    • getWeaponArc

      public int getWeaponArc(int weaponNumber)
      Description copied from class: Tank
      Returns the Compute.ARC that the weapon fires into.
      Overrides:
      getWeaponArc in class Tank
      Parameters:
      weaponNumber - integer equipment number, index from equipment list
      Returns:
      arc the specified weapon is in
    • isCrippled

      public boolean isCrippled(boolean checkCrew)
      Description copied from class: Entity
      Returns TRUE if the entity meets the requirements for crippling damage as detailed in TW pg 258. Excepting dead or non-existing crew issues
      Overrides:
      isCrippled in class Tank
      Returns:
      boolean
    • getEntityType

      public long getEntityType()
      Overrides:
      getEntityType in class Tank
    • getGenericBattleValue

      public int getGenericBattleValue()
      Description copied from class: Entity
      Calculates a "generic" Battle Value that is based on the average of all units of this type and tonnage. The purpose of this generic Battle Value is to allow a comparison of this unit's actual BV to that for units of its class. This can be used to balance forces without respect to unit or pilot quality.

      The generic BV values are calculated by a statistical elasticity model based on all data from the MegaMek database.

      Overrides:
      getGenericBattleValue in class Tank
      Returns:
      The generic Battle value for this unit based on its tonnage and type
    • isSideLocation

      public boolean isSideLocation(int location)
      Overrides:
      isSideLocation in class Tank
      Parameters:
      location - The location to check
      Returns:
      True when the given location is a side location, i.e. left, right or, on superheavy units, front or rear left/right.