Class ASCriticalView

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, CriticalSlotsView

public class ASCriticalView extends IView implements CriticalSlotsView
The Crit Slots view for a Fighter (Aerospace and Conventional)
See Also:
  • Constructor Details

  • Method Details

    • refresh

      public void refresh()
    • updateRefresh

      public void updateRefresh(RefreshListener refresh)
    • markUnavailableLocations

      public void markUnavailableLocations(int location)
      Description copied from interface: CriticalSlotsView
      Darkens all other crit blocks (those that are not for the given location).
      Specified by:
      markUnavailableLocations in interface CriticalSlotsView
    • markUnavailableLocations

      public void markUnavailableLocations(megamek.common.equipment.Mounted<?> equipment)
      Description copied from interface: CriticalSlotsView
      Darkens all crit blocks that are unavailable to the given equipment, e.g. all but Torsos for CASE. It's a design decision if this should check only if the location is suitable at all, or also equipment space requirements or even equipment counts (e.g. only one sword per location). This can be handled differently vor different unit types.
      Specified by:
      markUnavailableLocations in interface CriticalSlotsView
    • unMarkAllLocations

      public void unMarkAllLocations()
      Description copied from interface: CriticalSlotsView
      Resets all crit blocks to not darkened.
      Specified by:
      unMarkAllLocations in interface CriticalSlotsView