Package megamek.client.ui.widget.mapset
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 Summary
Modifier and TypeMethodDescriptiondefault voidsetCriticalLocations(Set<Integer> criticalLocations) Stripes the given locations to show that they have taken a critical hit.void
-
Method Details
-
getContentGroup
PMAreasGroup getContentGroup() -
getBackgroundDrawers
Vector<BackGroundDrawer> getBackgroundDrawers() -
setEntity
-
setCriticalLocations
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 aftersetEntity(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
-