Class ASArcedDamageConverter
java.lang.Object
megamek.common.alphaStrike.conversion.ASDamageConverter
megamek.common.alphaStrike.conversion.ASArcedDamageConverter
-
Field Summary
Fields inherited from class megamek.common.alphaStrike.conversion.ASDamageConverter
element, entity, finalEDamage, finalLDamage, finalMDamage, finalSDamage, hasTargetingComputer, heatAdjustFactor, heatAdjustFactorLE, heatAdjustFactorREAR, locationNames, locations, needsHeatAdjustment, rawSDamage, rdNm, rdUp, rearLocation, report, TROOP_FACTOR, turretLocation, weaponsList -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedASArcedDamageConverter(Entity entity, AlphaStrikeElement element, CalculationReport report) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected double[]assembleSpecialDamage(BattleForceSUA dmgType, int location) Sums up the damage values for all ranges and reports the counted weapons.protected voidprotected doubledetermineDamage(Mounted<?> weapon, int range) Returns the damage value to be used for the given weapon at the given range.protected doubledetermineSpecialsDamage(WeaponType weaponType, Mounted<?> linked, int range, BattleForceSUA dmgType) protected intgetHeatGeneration(boolean onlyRear, boolean onlyLongRange) Returns the total generated heat (weapons and movement) for a Mek or Aero for the purpose of finding OV / OVL values.protected voidprocessAMS(Mounted<?> weapon, WeaponType weaponType) protected voidprocessArcSpecial(ASArcs arc, BattleForceSUA dmgType) Processes damage values.protected voidprocessArtillery(Mounted<?> weapon, WeaponType weaponType) protected voidprotected voidprotected voidreportAssignToLocations(Mounted<?> weapon, BattleForceSUA sua, String abilityValue, int loc) protected intweaponHeat(Mounted<?> weapon, boolean onlyRear, boolean onlyLongRange) protected voidMethods inherited from class megamek.common.alphaStrike.conversion.ASDamageConverter
assembleFrontDamage, assembleHeatDamage, assignSpecialAbilities, assignToLocations, assignToLocations, countsForSpecial, determineFinalHT, formatAsVector, formatAsVector, getArtilleryType, getDamageMultiplier, getHeatCapacity, getRearLocation, getTurretLocation, getWeaponDesc, isArtilleryCannon, processFrontSpecialDamage, processHT, processHT, processLDamage, processMDamage, processNarc, processSDamage, processSpecialAbilities, processSpecialDamage, processTaser, processTurrets, qualifiesForSpecial, rangesForSpecial, roundUpToTenth, weaponHeat
-
Constructor Details
-
ASArcedDamageConverter
protected ASArcedDamageConverter(Entity entity, AlphaStrikeElement element, CalculationReport report)
-
-
Method Details
-
processDamage
protected void processDamage() -
calculateHeatAdjustment
protected void calculateHeatAdjustment()- Overrides:
calculateHeatAdjustmentin classASDamageConverter
-
weaponHeat
-
processArcSpecial
Processes damage values. The dmgType indicates the special ability for which this is (LRM, REAR, etc.). location indicates the target of this damage, i.e. if it is the unit's standard damage and standard ability block, the REAR ability or the TUR block, see ASLocationMapper. When the location is rearLocation, dmgType must be REAR (as REAR has no LRM damage or the like) When the location is turretLocation, TUR indicates it's the TUR's standard damage, LRM indicates it's the LRM damage within the TUR block. -
reportAssignToLocations
protected void reportAssignToLocations(Mounted<?> weapon, BattleForceSUA sua, String abilityValue, int loc) - Overrides:
reportAssignToLocationsin classASDamageConverter
-
assembleSpecialDamage
Description copied from class:ASDamageConverterSums up the damage values for all ranges and reports the counted weapons. The dmgType indicates the special ability for which this sum is (LRM, REAR, etc.). location indicates the target of this damage, i.e. if it is the unit's standard damage and standard ability block, the REAR ability or the TUR block, see ASLocationMapper. When the location is rearLocation, dmgType must be REAR (as REAR has no LRM damage or the like) When the location is turretLocation, TUR indicates it's the TUR's standard damage, LRM indicates it's the LRM damage within the TUR block.- Overrides:
assembleSpecialDamagein classASDamageConverter- Returns:
- The raw damage sums for the four ranges
-
assembleAmmoCounts
protected void assembleAmmoCounts()- Overrides:
assembleAmmoCountsin classASDamageConverter
-
writeLocationsToElement
protected void writeLocationsToElement()- Overrides:
writeLocationsToElementin classASDamageConverter
-
processEDamage
protected void processEDamage()- Overrides:
processEDamagein classASDamageConverter
-
processAMS
- Overrides:
processAMSin classASDamageConverter
-
determineDamage
Description copied from class:ASDamageConverterReturns the damage value to be used for the given weapon at the given range. Overridden for special treatment and possibly ignoring some weapons.- Overrides:
determineDamagein classASDamageConverter- Parameters:
weapon- The weapon Mountedrange- The range value (not bracket)- Returns:
- the damage to be used
-
determineSpecialsDamage
protected double determineSpecialsDamage(WeaponType weaponType, Mounted<?> linked, int range, BattleForceSUA dmgType) - Overrides:
determineSpecialsDamagein classASDamageConverter
-
processArtillery
- Overrides:
processArtilleryin classASDamageConverter
-
getHeatGeneration
protected int getHeatGeneration(boolean onlyRear, boolean onlyLongRange) Description copied from class:ASDamageConverterReturns the total generated heat (weapons and movement) for a Mek or Aero for the purpose of finding OV / OVL values. If onlyRear is true, only rear-facing weapons are included, otherwise only front-facing weapons are included! If onlyLongRange is true, only weapons with an L damage value are included.- Overrides:
getHeatGenerationin classASDamageConverter
-