Class ASPointValueConverter

java.lang.Object
megamek.common.alphaStrike.conversion.ASPointValueConverter
Direct Known Subclasses:
ASAeroPointValueConverter

public class ASPointValueConverter extends Object
  • Field Details

    • element

      protected final AlphaStrikeElement element
    • report

      protected final CalculationReport report
    • offensiveValue

      protected double offensiveValue
    • defensiveValue

      protected double defensiveValue
    • dir

      protected double dir
    • subTotal

      protected double subTotal
  • Constructor Details

  • Method Details

    • getBasePointValue

      protected int getBasePointValue()
    • processStandardDamageAndOV

      protected void processStandardDamageAndOV()
    • processSize

      protected void processSize()
    • processMovement

      protected void processMovement()
    • processOffensiveSUAMods

      protected void processOffensiveSUAMods()
      Returns the Ground Offensive SUA modifier, ASC p.139.
    • processOffensiveBT

      protected void processOffensiveBT()
    • processArtyOffensiveSUAMods

      protected void processArtyOffensiveSUAMods()
      Returns the Artillery part of the Ground Offensive SUA modifier, ASC p.139.
    • processOffensiveSUAMod

      protected void processOffensiveSUAMod(BattleForceSUA sua, Function<AlphaStrikeElement,Double> suaMod)
      A helper method for SUA modifiers of various types. Returns the modifier (or 0) and adds a line to the report.
      Parameters:
      sua - The SUA to be checked
      suaMod - A Function object that returns the modifier for the element and SUA. This is
    • processDefensiveSUAMod

      protected void processDefensiveSUAMod(BattleForceSUA sua, Function<AlphaStrikeElement,Double> suaMod)
      A helper method for SUA modifiers of various types. Returns the modifier (or 0) and adds a line to the report.
      Parameters:
      sua - The SUA to be checked
      suaMod - A Function object that returns the modifier for the element and SUA. This is
    • processOffensiveBlanketMod

      protected void processOffensiveBlanketMod()
    • processUnitTypeDamageDivisors

      protected void processUnitTypeDamageDivisors()
    • processDefensiveSUAMods

      protected void processDefensiveSUAMods()
    • processDefensiveFactors

      protected void processDefensiveFactors()
    • processArmor

      protected void processArmor()
    • processStructure

      protected void processStructure()
    • processGroundCapabilities

      protected void processGroundCapabilities()
    • c3Bonus

      protected double c3Bonus()
      C3 Bonus, AlphaStrike Companion Errata v1.4, p.17
    • processForceBonus

      protected void processForceBonus()
      Adds the force bonus to the current subTotal and returns the new subTotal.
    • getHighestMove

      protected int getHighestMove(AlphaStrikeElement element)
      Returns:
      The highest movement capability of the element's movement modes.