Class ConvFighter

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

public class ConvFighter extends AeroSpaceFighter
Since:
Jun 12, 2008
See Also:
  • Field Details

  • Constructor Details

    • ConvFighter

      public ConvFighter()
  • Method Details

    • getUnitType

      public int getUnitType()
      Overrides:
      getUnitType in class AeroSpaceFighter
      See Also:
    • 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.
      Returns:
      True when this is a conventional 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.
      Specified by:
      isAerospaceFighter in interface BTObject
      Overrides:
      isAerospaceFighter in class AeroSpaceFighter
      Returns:
      True when this is an aerospace fighter
    • doomedInVacuum

      public boolean doomedInVacuum()
      Overrides:
      doomedInVacuum in class Entity
      Returns:
      True when this unit will not survive vacuum conditions.
    • doomedInSpace

      public boolean doomedInSpace()
      Overrides:
      doomedInSpace in class Aero
      Returns:
      True when this unit is not allowed to be or will not survive in any hex of a space map (unless it is being transported).
    • getHeatCapacity

      public int getHeatCapacity()
      Description copied from class: Entity
      Returns the amount of heat that the entity can sink each turn.
      Overrides:
      getHeatCapacity in class Entity
    • tracksHeat

      public boolean tracksHeat()
      Description copied from interface: Targetable
      Used to identify a target that tracks heat buildup (Meks, ASFs, and small craft).
      Specified by:
      tracksHeat in interface Targetable
      Overrides:
      tracksHeat in class Aero
      Returns:
      Whether the target tracks heat buildup.
    • getFuelPointsPerTon

      public double getFuelPointsPerTon()
      Specified by:
      getFuelPointsPerTon in interface IAero
      Overrides:
      getFuelPointsPerTon in class Aero
    • getFuelUsed

      public int getFuelUsed(int thrust)
    • getConstructionTechAdvancement

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

      public double getBVTypeModifier()
      Description copied from class: Aero
      Not used directly but is overwritten in 5 other classes.
      Overrides:
      getBVTypeModifier in class Aero
      Returns:
      BV Type Modifier.
    • 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 Aero
      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 Aero
    • calculateWalk

      protected int calculateWalk()
      Overrides:
      calculateWalk in class Aero
    • getEntityType

      public long getEntityType()
      Overrides:
      getEntityType 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 AeroSpaceFighter
      Returns:
      The generic Battle value for this unit based on its tonnage and type