Class ASLocationMapper
java.lang.Object
megamek.common.alphaStrike.conversion.ASLocationMapper
This class provides AlphaStrike conversion utilities for converting all sorts of locations of TW units to the damage
conversion location index. Not useful for anything outside AlphaStrike conversion.
-
Method Summary
Modifier and TypeMethodDescriptionstatic doubledamageLocationMultiplier(Entity en, int loc, Mounted<?> mount) static doubledamageLocationMultiplierForSpecials(Entity en, int loc, Mounted<?> mount) Returns the value multiplier for the given Mounted of the given entity in the AS conversion location loc.static StringlocationName(Entity en, int index)
-
Method Details
-
damageLocationMultiplier
-
damageLocationMultiplierForSpecials
Returns the value multiplier for the given Mounted of the given entity in the AS conversion location loc. The AS conversion location is anASSpecialAbilityCollectionassembling the specials for the unit, a TUR ability, REAR and the arcs of large units, not the mounted's location on the entity. This multiplier is only correct for weapon-based special abilities like MHQ, C3M, NARC or ART-x abilities.- Parameters:
en- The entityloc- The conversion location index, see locations[] in ASDamageConvertermount- the weapon- Returns:
- The value multiplier, 1 meaning "counts for this location", 0 meaning "doesn't count"
-
locationName
-