Class FixedWingSupport

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

public class FixedWingSupport extends ConvFighter
Since:
10/31/2010
See Also:
  • Field Details

  • Constructor Details

    • FixedWingSupport

      public FixedWingSupport()
  • Method Details

    • isFixedWingSupport

      public boolean isFixedWingSupport()
      Description copied from interface: BTObject
      Returns true when this object is a Fixed-Wing Support or of type 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 fixed-wing support unit
    • isConventionalFighter

      public boolean isConventionalFighter()
      Description copied from interface: BTObject
      Returns true when this object is a conventional fighter (not aerospace, nor Fixed-Wing Support) or of type CF for Alpha Strike. Returns false for any type of unit group even if it is of the right type.
      Specified by:
      isConventionalFighter in interface BTObject
      Overrides:
      isConventionalFighter in class ConvFighter
      Returns:
      True when this is a conventional fighter including fixed-wing support
    • setBARRating

      public void setBARRating(int rating, int loc)
      Description copied from class: Entity
      Sets the barrier armor rating in a specific location for support vehicles. Has no effect on other unit types.
      Overrides:
      setBARRating in class Entity
      Parameters:
      rating - The BAR
      loc - The location index
    • setBARRating

      public void setBARRating(int rating)
      Description copied from class: Entity
      Sets the barrier armor rating for support vehicles. Has no effect on other unit types.
      Overrides:
      setBARRating in class Entity
      Parameters:
      rating - The BAR
    • getBARRating

      public int getBARRating(int loc)
      Description copied from class: Entity
      Return the BAR-rating of this Entity's armor
      Overrides:
      getBARRating in class Entity
      Returns:
      the BAR rating
    • hasBARArmor

      public boolean hasBARArmor(int loc)
      Overrides:
      hasBARArmor in class Entity
      Returns:
      True if this unit has BAR armor of a rating of less than 10 in the given location.
    • hasArmoredChassis

      public boolean hasArmoredChassis()
      Overrides:
      hasArmoredChassis in class Entity
      Returns:
      True if this entity has an armored chassis.
    • getLocationAbbreviations

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

      public String[] getLocationNames()
      Overrides:
      getLocationNames in class Aero
    • isSupportVehicle

      public boolean isSupportVehicle()
      Description copied from interface: BTObject
      Returns true when this object is a Support Vehicle of any kind (including ground and aerospace). Returns false for any type of unit group even if it is of the right type.
      Returns:
      True when this is a Support Vehicle
    • autoSetSI

      public void autoSetSI()
      Overrides:
      autoSetSI in class Aero
    • isVSTOL

      public boolean isVSTOL()
      Specified by:
      isVSTOL in interface IAero
      Overrides:
      isVSTOL in class Aero
    • isSTOL

      public boolean isSTOL()
      Specified by:
      isSTOL in interface IAero
      Overrides:
      isSTOL in class Aero
    • hasPropChassisMod

      public boolean hasPropChassisMod()
    • kgPerFuelPoint

      public int kgPerFuelPoint()
      While most aerospace units measure fuel weight in points per ton, support vehicles measure in kg per point. Vehicles that do not require fuel return 0.
      Returns:
      The mass of each point of fuel in kg.
    • getFuelTonnage

      public double getFuelTonnage()
      Description copied from class: Aero
      Gets the fuel for this Aero in terms of tonnage.
      Specified by:
      getFuelTonnage in interface IAero
      Overrides:
      getFuelTonnage in class Aero
      Returns:
      The number of tons of fuel on this Aero.
    • getFuelPointsPerTon

      public double getFuelPointsPerTon()
      Specified by:
      getFuelPointsPerTon in interface IAero
      Overrides:
      getFuelPointsPerTon in class ConvFighter
    • requiresFuel

      public boolean requiresFuel()
      Returns:
      True when this aero requires fuel to move. Note that the result is undefined when the unit has no engine. Callers should consider this case themselves. Also note that this method does not check whether fuel use as a game option is active, only if the unit technically requires fuel to move. For example, returns false for solar-powered prop-driven fixed wing support (TM p129).
    • getConstructionTechAdvancement

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

      public static TechAdvancement getConstructionTechAdvancement(EntityMovementMode movementMode, int weightClass)
    • calculateWalk

      protected int calculateWalk()
      Overrides:
      calculateWalk in class ConvFighter
    • 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 AeroSpaceFighter
    • initializeThresh

      public void initializeThresh(int loc)
      Overrides:
      initializeThresh in class Aero
    • getBaseEngineValue

      public double getBaseEngineValue()
      Overrides:
      getBaseEngineValue in class Entity
      Returns:
      the base engine value for support vehicles, see TM pg 120. Non-support vehicle entities will return 0.
    • getBaseChassisValue

      public double getBaseChassisValue()
      Overrides:
      getBaseChassisValue in class Entity
      Returns:
      the base chassis value for support vehicles, see TM pg 120. Non-support vehicle entities will return 0.
    • getTotalSlots

      @Deprecated(since="0.51.0", forRemoval=true) public int getTotalSlots()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getCost

      public double getCost(CalculationReport calcReport, boolean ignoreAmmo)
      Description copied from class: Entity
      Calculates and returns the C-bill cost of the unit. The parameter ignoreAmmo can be used to include or exclude ("dry cost") the cost of ammunition on the unit. A report for the cost calculation will be written to the given calcReport.
      Overrides:
      getCost in class ConvFighter
      Parameters:
      calcReport - A CalculationReport to write the report for the cost calculation to
      ignoreAmmo - When true, the cost of ammo on the unit will be excluded from the cost
      Returns:
      The cost in C-Bills of the 'Mek in question.
    • getPriceMultiplier

      public double getPriceMultiplier()
      Description copied from class: Entity
      Returns a multiplier that combines multiplicative construction cost modifiers for this Entity.

      This includes only modifiers that apply to an Entity's final, total cost (e.g. - the 1.25x modifier for being an omni-unit, or the 32.0x for being an aerodyne DropShip). It does NOT include multipliers that only apply to a sub-part of the unit (e.g. the weight based multiplier that applies to a vehicle's internal structure cost).

      This allows MekHQ to scale the price of a Unit's Parts in a more appropriate manner.

      Defaults to 1.0

      Overrides:
      getPriceMultiplier in class ConvFighter
    • getBVTypeModifier

      public double getBVTypeModifier()
      Description copied from class: Aero
      Not used directly but is overwritten in 5 other classes.
      Overrides:
      getBVTypeModifier in class ConvFighter
      Returns:
      BV Type Modifier.
    • getEntityType

      public long getEntityType()
      Overrides:
      getEntityType in class ConvFighter
    • isAerospaceSV

      public boolean isAerospaceSV()
      Description copied from interface: BTObject
      Returns true when this object is a Support Vehicle using aerospace movement such as a Fixed-Wing support. Returns false for any type of unit group even if it is of the right type.
      Returns:
      True when this is an aerospace Support Vehicle
    • setOriginalWalkMP

      public void setOriginalWalkMP(int walkMP)
      Description copied from class: Entity
      Sets this entity's original walking movement points
      Overrides:
      setOriginalWalkMP in class AeroSpaceFighter
    • 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 ConvFighter
      Returns:
      The generic Battle value for this unit based on its tonnage and type