Package megamek.common.util
Class AeroAVModCalculator
java.lang.Object
megamek.common.util.AeroAVModCalculator
This whole class is a utility to calculate the aerospace AV modification for linked Artemis, Apollo, or PPC
capacitor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcalculateBonus(WeaponType weapon, EquipmentType linkedBy, boolean bay) Computes any modification to the aerospace AV for linked Artemis, Apollo, or PPC capacitor
-
Constructor Details
-
AeroAVModCalculator
public AeroAVModCalculator()
-
-
Method Details
-
calculateBonus
Computes any modification to the aerospace AV for linked Artemis, Apollo, or PPC capacitor- Parameters:
weapon- The type of weaponlinkedBy- The type of equipment the weapon is linked bybay- Whether the weapon is part of a weapon bay- Returns:
- The AV modification, if any
-