Class ASPointValueConverter
java.lang.Object
megamek.common.alphaStrike.conversion.ASPointValueConverter
- Direct Known Subclasses:
ASAeroPointValueConverter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected doubleprotected final AlphaStrikeElementprotected doubleprotected final CalculationReportprotected double -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedASPointValueConverter(AlphaStrikeElement element, CalculationReport report) -
Method Summary
Modifier and TypeMethodDescriptionprotected doublec3Bonus()C3 Bonus, AlphaStrike Companion Errata v1.4, p.17protected intprotected intgetHighestMove(AlphaStrikeElement element) protected voidprotected voidReturns the Artillery part of the Ground Offensive SUA modifier, ASC p.139.protected voidprotected voidprocessDefensiveSUAMod(BattleForceSUA sua, Function<AlphaStrikeElement, Double> suaMod) A helper method for SUA modifiers of various types.protected voidprotected voidAdds the force bonus to the current subTotal and returns the new subTotal.protected voidprotected voidprotected voidprotected voidprotected voidprocessOffensiveSUAMod(BattleForceSUA sua, Function<AlphaStrikeElement, Double> suaMod) A helper method for SUA modifiers of various types.protected voidReturns the Ground Offensive SUA modifier, ASC p.139.protected voidprotected voidprotected voidprotected void
-
Field Details
-
element
-
report
-
offensiveValue
protected double offensiveValue -
defensiveValue
protected double defensiveValue -
dir
protected double dir -
subTotal
protected double subTotal
-
-
Constructor Details
-
ASPointValueConverter
-
-
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 checkedsuaMod- 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 checkedsuaMod- 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
- Returns:
- The highest movement capability of the element's movement modes.
-