Class BACriticalSuit

java.lang.Object
megameklab.ui.battleArmor.BACriticalSuit

public class BACriticalSuit extends Object
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 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)