Class AeroBVCalculator

Direct Known Subclasses:
LargeAeroBVCalculator

public class AeroBVCalculator extends HeatTrackingBVCalculator
  • Field Details

    • aero

      protected final Aero aero
  • Method Details

    • processStructure

      protected void processStructure()
      Overrides:
      processStructure in class BVCalculator
    • validArmorLocation

      protected boolean validArmorLocation(int location)
      Description copied from class: BVCalculator
      Returns true when the given location is valid for armor BV calculations. Returns true by default. Override to exclude locations, e.g. hull on AeroSpace.
      Overrides:
      validArmorLocation in class BVCalculator
      Parameters:
      location - The location to check
      Returns:
      True when the given location must be considered for Armor BV
    • processExplosiveEquipment

      protected void processExplosiveEquipment()
      Overrides:
      processExplosiveEquipment in class HeatTrackingBVCalculator
    • processTypeModifier

      protected void processTypeModifier()
      Overrides:
      processTypeModifier in class BVCalculator
    • processDefensiveFactor

      protected void processDefensiveFactor()
      Overrides:
      processDefensiveFactor in class BVCalculator
    • heatEfficiency

      protected int heatEfficiency()
      Overrides:
      heatEfficiency in class BVCalculator
      Returns:
      The unit's heat dissipation for BV purposes. Override as necessary.
    • isNominalRear

      protected boolean isNominalRear(Mounted<?> weapon)
      Description copied from class: BVCalculator
      Returns true when a weapon is to be counted and calculated as a rear weapon. For units that deal with rear weapons this is usually true when the weapon is actually rear-facing but may be false when weapon facing is reversed (when the front weapons BV is smaller than the rear weapon BV). This method should rely on the switchRearAndFront field to decide the return value. switchRearAndFront is set before weapons are processed by the call to BVCalculator.determineFront(). By default, this returns false which is correct for units that do not deal with rear weapons such as ProtoMeks. This is overridden as necessary for units that deal with rear weapons (Mek, Aero, Tanks, but not large aerospace that use arcs).
      Overrides:
      isNominalRear in class BVCalculator
      Parameters:
      weapon - The Mounted equipment to check
      Returns:
      True when the weapon is to be counted as if it was rear-facing
    • frontWeaponFilter

      protected Predicate<Mounted<?>> frontWeaponFilter()
      Description copied from class: BVCalculator
      Returns a Predicate that determines if a weapon is counted as a front or nose arc weapon -ONLY- for the purpose of determining if the weapon BV of front weapons exceeds that of rear weapons on unit types that care about rear weapons. By default, returns true so that all weapons count safely as front weapons. Should be overridden for all unit types that account for rear-facing weapons. Does not need to be overridden for unit types that don't (such as ProtoMeks).
      Overrides:
      frontWeaponFilter in class BVCalculator
      Returns:
      A Predicate identifying if a weapon counts as a front weapon (read above!)
    • rearWeaponFilter

      protected Predicate<Mounted<?>> rearWeaponFilter()
      Description copied from class: BVCalculator
      Returns a Predicate that determines if a weapon is counted as a rear or aft arc weapon -ONLY- for the purpose of determining if the weapon BV of front weapons exceeds that of rear weapons on unit types that care about rear weapons. By default, returns false so that all weapons count safely as front weapons. Should be overridden for all unit types that account for rear-facing weapons. Does not need to be overridden for unit types that don't (such as ProtoMeks).
      Overrides:
      rearWeaponFilter in class BVCalculator
      Returns:
      A Predicate identifying if a weapon counts as a front weapon (read above!)
    • processSummarize

      protected void processSummarize()
      Description copied from class: BVCalculator
      Processes the sum of offensive and defensive battle rating and modifiers that affect this sum.
      Overrides:
      processSummarize in class BVCalculator
    • offensiveSpeedFactorMP

      protected int offensiveSpeedFactorMP()
      Overrides:
      offensiveSpeedFactorMP in class BVCalculator
      Returns:
      the MP value to use for the Offensive Speed Factor (TM p.316) for this unit.