Class ASArcedDamageConverter

java.lang.Object
megamek.common.alphaStrike.conversion.ASDamageConverter
megamek.common.alphaStrike.conversion.ASArcedDamageConverter

public class ASArcedDamageConverter extends ASDamageConverter
  • Constructor Details

  • Method Details

    • processDamage

      protected void processDamage()
    • calculateHeatAdjustment

      protected void calculateHeatAdjustment()
      Overrides:
      calculateHeatAdjustment in class ASDamageConverter
    • weaponHeat

      protected int weaponHeat(Mounted<?> weapon, boolean onlyRear, boolean onlyLongRange)
    • processArcSpecial

      protected void processArcSpecial(ASArcs arc, BattleForceSUA dmgType)
      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:
      reportAssignToLocations in class ASDamageConverter
    • assembleSpecialDamage

      protected double[] assembleSpecialDamage(BattleForceSUA dmgType, int location)
      Description copied from class: ASDamageConverter
      Sums 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:
      assembleSpecialDamage in class ASDamageConverter
      Returns:
      The raw damage sums for the four ranges
    • assembleAmmoCounts

      protected void assembleAmmoCounts()
      Overrides:
      assembleAmmoCounts in class ASDamageConverter
    • writeLocationsToElement

      protected void writeLocationsToElement()
      Overrides:
      writeLocationsToElement in class ASDamageConverter
    • processEDamage

      protected void processEDamage()
      Overrides:
      processEDamage in class ASDamageConverter
    • processAMS

      protected void processAMS(Mounted<?> weapon, WeaponType weaponType)
      Overrides:
      processAMS in class ASDamageConverter
    • determineDamage

      protected double determineDamage(Mounted<?> weapon, int range)
      Description copied from class: ASDamageConverter
      Returns the damage value to be used for the given weapon at the given range. Overridden for special treatment and possibly ignoring some weapons.
      Overrides:
      determineDamage in class ASDamageConverter
      Parameters:
      weapon - The weapon Mounted
      range - The range value (not bracket)
      Returns:
      the damage to be used
    • determineSpecialsDamage

      protected double determineSpecialsDamage(WeaponType weaponType, Mounted<?> linked, int range, BattleForceSUA dmgType)
      Overrides:
      determineSpecialsDamage in class ASDamageConverter
    • processArtillery

      protected void processArtillery(Mounted<?> weapon, WeaponType weaponType)
      Overrides:
      processArtillery in class ASDamageConverter
    • getHeatGeneration

      protected int getHeatGeneration(boolean onlyRear, boolean onlyLongRange)
      Description copied from class: ASDamageConverter
      Returns 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:
      getHeatGeneration in class ASDamageConverter