Class ASSpecialAbilityConverter

java.lang.Object
megamek.common.alphaStrike.conversion.ASSpecialAbilityConverter
Direct Known Subclasses:
ASAeroSpecialAbilityConverter, ASInfantrySpecialAbilityConverter, ASLargeAeroSpecialAbilityConverter, ASMekSpecialAbilityConverter, ASProtoMekSpecialAbilityConverter, ASVehicleSpecialAbilityConverter

public class ASSpecialAbilityConverter extends Object
  • Field Details

  • Constructor Details

    • ASSpecialAbilityConverter

      protected ASSpecialAbilityConverter(Entity entity, AlphaStrikeElement element, CalculationReport report)
      Do not call this directly. Use the static getASDamageConverter instead. Constructs a damage converter for ground units.
      Parameters:
      entity - The entity to convert damage for
      element - The partially-converted element corresponding to the entity
      report - The calculation report to write to
  • Method Details

    • processENE

      protected void processENE()
    • processEquipment

      protected void processEquipment()
    • processMiscMounted

      protected void processMiscMounted(Mounted<?> misc)
    • eligibleForCASE

      protected boolean eligibleForCASE()
    • processSEALandSOA

      protected void processSEALandSOA(Mounted<?> misc)
    • processATMO

      protected void processATMO()
    • hasSoaCapableEngine

      protected boolean hasSoaCapableEngine()
    • processUnitFeatures

      protected void processUnitFeatures()
    • processARM

      protected void processARM()
    • processTransports

      protected void processTransports()
    • processMFB

      protected void processMFB(Transporter transporter)
      Assign MFB for certain types of Bay. Overridden for Large Aero that do not assign MFB.
    • isExplosive

      protected static boolean isExplosive(Mounted<?> equipment)
      Returns true when the given Mounted blocks ENE.
    • finalizeSpecials

      protected void finalizeSpecials()
    • assign

      protected void assign(Mounted<?> equipment, BattleForceSUA firstSua, BattleForceSUA... moreSUAs)
      Adds the sua(s) to the element and writes a report line for each, if it is not yet present.
    • assign

      protected void assign(Mounted<?> equipment, BattleForceSUA sua)
      Adds the sua to the element and writes a report line using the name of the given equipment if the sua is not yet present.
    • assign

      protected void assign(String text, BattleForceSUA sua)
      Adds the sua to the element and writes a report line using the given text - only if the sua is not yet present.
    • addReportLine

      @Deprecated(since="0.51.0", forRemoval=true) protected void addReportLine(Mounted<?> equipment, BattleForceSUA sua)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Writes a report line for adding the sua using the name of the given equipment.
    • assign

      protected void assign(Mounted<?> equipment, BattleForceSUA sua, double doubleAbilityValue)
      Adds the sua with the given value to the element and writes a report line using the name of the given equipment.
    • assign

      protected void assign(String text, BattleForceSUA sua, double doubleAbilityValue)
      Adds the sua with the given value to the element and writes a report line using the given text.
    • assign

      protected void assign(Mounted<?> equipment, BattleForceSUA sua, int intAbilityValue)
      Adds the sua with the given value to the element and writes a report line using the name of the given equipment.
    • assign

      protected void assign(String text, BattleForceSUA sua, int intAbilityValue)
      Adds the sua with the given value to the element and writes a report line using the given text.
    • addReportLine

      protected void addReportLine(Mounted<?> equipment, BattleForceSUA sua, String abilityValue)
      Writes a report line for adding the sua with the given value using the name of the given equipment.
    • addReportLine

      protected void addReportLine(String text, BattleForceSUA sua, String abilityValue)
      Writes a report line for adding the sua with the given value using the given text.