Class LargeSupportTank

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

public class LargeSupportTank extends SupportTank
This is a large support vehicle
See Also:
  • Field Details

  • Constructor Details

    • LargeSupportTank

      public LargeSupportTank()
  • 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
    • 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 SupportTank
    • isLocationProhibited

      public boolean isLocationProhibited(Coords c, int testBoardId, int currElevation)
      Description copied from class: Tank
      Tanks have all sorts of prohibited terrain.
      Overrides:
      isLocationProhibited in class SupportTank
      Parameters:
      c - The position to test
      testBoardId - The board to test
      currElevation - The elevation or altitude to test
      Returns:
      True when the location is illegal to be in for this unit, regardless of elevation
      See Also:
    • getFuelTonnage

      public double getFuelTonnage()
      Description copied from class: Tank
      Returns the mass of the fuel, which is used for calculating operating range. For combat vehicles this is considered part of the engine weight. For support vehicles it is in addition to the engine weight.
      Overrides:
      getFuelTonnage in class SupportTank
      Returns:
      fuel tonnage
    • setFuelTonnage

      public void setFuelTonnage(double fuel)
      Description copied from class: Tank
      Sets the fuel mass for support vehicles. Has no effect on combat vehicles.
      Overrides:
      setFuelTonnage in class SupportTank
      Parameters:
      fuel - The mass of the fuel in tons
    • 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.