Class CombatVehicleBVCalculator

java.lang.Object
megamek.common.battleValue.BVCalculator
megamek.common.battleValue.CombatVehicleBVCalculator

public class CombatVehicleBVCalculator extends BVCalculator
  • Method Details

    • getUmuTMM

      protected int getUmuTMM()
      Overrides:
      getUmuTMM in class BVCalculator
    • getRunningTMM

      protected int getRunningTMM()
      Overrides:
      getRunningTMM in class BVCalculator
    • getJumpingTMM

      protected int getJumpingTMM()
      Overrides:
      getJumpingTMM in class BVCalculator
    • processTypeModifier

      protected void processTypeModifier()
      Overrides:
      processTypeModifier in class BVCalculator
    • 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!)
    • 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!)
    • 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
    • processWeight

      protected void processWeight()
      Overrides:
      processWeight 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.