Class ASSpecialAbilityConverter
java.lang.Object
megamek.common.alphaStrike.conversion.ASSpecialAbilityConverter
- Direct Known Subclasses:
ASAeroSpecialAbilityConverter,ASInfantrySpecialAbilityConverter,ASLargeAeroSpecialAbilityConverter,ASMekSpecialAbilityConverter,ASProtoMekSpecialAbilityConverter,ASVehicleSpecialAbilityConverter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AlphaStrikeElementprotected Entityprotected CalculationReport -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedASSpecialAbilityConverter(Entity entity, AlphaStrikeElement element, CalculationReport report) Do not call this directly. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddReportLine(String text, BattleForceSUA sua, String abilityValue) Writes a report line for adding the sua with the given value using the given text.protected voidaddReportLine(Mounted<?> equipment, BattleForceSUA sua) Deprecated, for removal: This API element is subject to removal in a future version.protected voidaddReportLine(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.protected voidassign(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.protected voidassign(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.protected voidassign(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.protected voidassign(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.protected voidassign(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.protected voidassign(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.protected voidassign(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.protected booleanprotected voidprotected booleanprotected static booleanisExplosive(Mounted<?> equipment) Returns true when the given Mounted blocks ENE.protected voidprotected voidprotected voidprotected voidprotected voidprocessMFB(Transporter transporter) Assign MFB for certain types of Bay.protected voidprocessMiscMounted(Mounted<?> misc) protected voidprocessSEALandSOA(Mounted<?> misc) protected voidprotected void
-
Field Details
-
entity
-
element
-
report
-
-
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 forelement- The partially-converted element corresponding to the entityreport- The calculation report to write to
-
-
Method Details
-
processENE
protected void processENE() -
processEquipment
protected void processEquipment() -
processMiscMounted
-
eligibleForCASE
protected boolean eligibleForCASE() -
processSEALandSOA
-
processATMO
protected void processATMO() -
hasSoaCapableEngine
protected boolean hasSoaCapableEngine() -
processUnitFeatures
protected void processUnitFeatures() -
processARM
protected void processARM() -
processTransports
protected void processTransports() -
processMFB
Assign MFB for certain types of Bay. Overridden for Large Aero that do not assign MFB. -
isExplosive
Returns true when the given Mounted blocks ENE. -
finalizeSpecials
protected void finalizeSpecials() -
assign
Adds the sua(s) to the element and writes a report line for each, if it is not yet present. -
assign
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
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
Adds the sua with the given value to the element and writes a report line using the name of the given equipment. -
assign
Adds the sua with the given value to the element and writes a report line using the given text. -
assign
Adds the sua with the given value to the element and writes a report line using the name of the given equipment. -
assign
Adds the sua with the given value to the element and writes a report line using the given text. -
addReportLine
Writes a report line for adding the sua with the given value using the name of the given equipment. -
addReportLine
Writes a report line for adding the sua with the given value using the given text.
-