Package megameklab.ui.battleArmor
Class BACriticalSuit
java.lang.Object
megameklab.ui.battleArmor.BACriticalSuit
Since BattleArmor is set up in a squad, the standard CriticalSlot system isn't used. For construction purposes, we
keep track of criticalSlots. In MM, for purposes and dealing with hits, the "locations" for BattleArmor must
correspond to the troopers in the squad. This means that the standard Mounted.location can't really be used, and it
causes problems with the criticalSlots as well. Since these really only matter for constructions, a separate critical
system is tracked in MML only for construction purposes.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMounted(int loc, megamek.common.equipment.Mounted<?> m) booleancanAddMounted(int loc, megamek.common.equipment.Mounted<?> m) megamek.common.CriticalSlotgetCritical(int loc, int slot) intgetNumCriticalSlots(int loc) int
-
Field Details
-
crits
protected megamek.common.CriticalSlot[][] crits
-
-
Constructor Details
-
BACriticalSuit
public BACriticalSuit(megamek.common.battleArmor.BattleArmor ba)
-
-
Method Details
-
locations
public int locations() -
getNumCriticalSlots
public int getNumCriticalSlots(int loc) -
canAddMounted
public boolean canAddMounted(int loc, megamek.common.equipment.Mounted<?> m) -
addMounted
public void addMounted(int loc, megamek.common.equipment.Mounted<?> m) -
getCritical
public megamek.common.CriticalSlot getCritical(int loc, int slot)
-