Class AeroSpaceFighter

All Implemented Interfaces:
Serializable, Transporter, InGameObject, CombatRole, ForceAssignable, ITechnology, ITurnOrdered, PhaseUpdated, RoundUpdated, BTObject, Deployable, IAero, IBomber, Targetable
Direct Known Subclasses:
ConvFighter, FighterSquadron

public class AeroSpaceFighter extends Aero
AeroSpaceFighter subclass of Aero that encapsulates Fighter functionality
See Also:
  • Constructor Details

    • AeroSpaceFighter

      public AeroSpaceFighter()
  • Method Details

    • getUnitType

      public int getUnitType()
      Overrides:
      getUnitType in class Aero
      See Also:
    • autoSetMaxBombPoints

      public void autoSetMaxBombPoints()
      Description copied from class: Aero
      Recalculates the internal and external hardpoints that this aero unit has. TM p.217, TW p.245
      Overrides:
      autoSetMaxBombPoints in class Aero
    • reduceMPByBombLoad

      public int reduceMPByBombLoad(int t)
      Specified by:
      reduceMPByBombLoad in interface IBomber
      Overrides:
      reduceMPByBombLoad in class Aero
      Returns:
      The calculates movement factoring in the load of bombs currently on unit, t is current movement
    • isSpheroid

      public boolean isSpheroid()
      Description copied from interface: BTObject
      Returns true when this object has the distinction between aerodyne and spheroid, i.e. if it is a DropShip or SmallCraft, and it is spheroid, false for any other type of object. Returns false for any type of unit group and for any unit that does not have the distinction.
      Specified by:
      isSpheroid in interface BTObject
      Specified by:
      isSpheroid in interface IAero
      Overrides:
      isSpheroid in class Aero
      Returns:
      True when this is object is spheroid
    • isBomber

      public boolean isBomber()
      Description copied from class: Aero
      Fighters may carry external ordnance; Other Aerospace units with cargo bays and the Internal Bomb Bay quirk may carry bombs internally.
      Specified by:
      isBomber in interface Targetable
      Overrides:
      isBomber in class Aero
      Returns:
      boolean
    • isFighter

      public boolean isFighter()
      Description copied from interface: BTObject
      Returns true when this object is a fighter (aerospace or conventional) including Fixed-Wing Support or of type CF/AF/SV(MV a) for Alpha Strike. Returns false for any type of unit group even if it is of the right type.
      Returns:
      True when this is a fighter including fixed-wing support
    • isAerospaceFighter

      public boolean isAerospaceFighter()
      Description copied from interface: BTObject
      Returns true when this object is an aerospace fighter (not conventional, nor Fixed-Wing Support) or of type AF for Alpha Strike. Returns false for any type of unit group even if it is of the right type.
      Returns:
      True when this is an aerospace fighter
    • damageLocation

      public void damageLocation(int loc)
      Method to enable mass location damaging, mainly for Fighter Squadrons
      Parameters:
      loc - that every fighter in the squadron needs to damage, for MekHQ tracking
    • getEntityType

      public long getEntityType()
      Overrides:
      getEntityType in class Aero
    • 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.

      Specified by:
      getGenericBattleValue in class Entity
      Returns:
      The generic Battle value for this unit based on its tonnage and type
    • setOriginalWalkMP

      public void setOriginalWalkMP(int walkMP)
      Description copied from class: Entity
      Sets this entity's original walking movement points
      Overrides:
      setOriginalWalkMP in class Entity
    • setWeight

      public void setWeight(double weight)
      Overrides:
      setWeight in class Entity