Interface DisplayMapSet

All Known Implementing Classes:
AeroMapSet, ArmlessMekMapSet, BattleArmorMapSet, CapitalFighterMapSet, GeneralInfoMapSet, GunEmplacementMapSet, InfantryMapSet, JumpshipMapSet, LargeSupportTankMapSet, MekMapSet, PilotMapSet, ProtoMekMapSet, QuadMapSet, SimpleUnitMapSet, SpheroidMapSet, SquadronMapSet, SuperHeavyTankMapSet, TankMapSet, TripodMekMapSet, VTOLMapSet, WarshipMapSet

public interface DisplayMapSet
Generic set of PicMap areas do represent various units in MekDisplay class
  • Method Details

    • getContentGroup

      PMAreasGroup getContentGroup()
    • getBackgroundDrawers

      Vector<BackGroundDrawer> getBackgroundDrawers()
    • setEntity

      void setEntity(Entity e)
    • setCriticalLocations

      default void setCriticalLocations(Set<Integer> criticalLocations)
      Stripes the given locations to show that they have taken a critical hit. The locations are colored by how damaged they are, so a critical hit is striped over that color rather than replacing it, and both can be read at once. Called after setEntity(megamek.common.units.Entity), which is what applies the damage colors.

      Unit types whose diagram has no per-location areas do nothing, so a caller can offer this for every unit.

      Parameters:
      criticalLocations - the locations that have taken a critical hit