Package megamek.client.ui.widget.mapset
Class VTOLMapSet
java.lang.Object
megamek.client.ui.widget.mapset.VTOLMapSet
- All Implemented Interfaces:
DisplayMapSet
Class which keeps set of all areas required to represent VTOL unit in MekDisplay.ArmorPanel class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetCriticalLocations(Set<Integer> criticalLocations) Stripes the given locations to show that they have taken a critical hit.voidvoidsetRest()
-
Field Details
-
LABEL_NONE
public static final int LABEL_NONE- See Also:
-
LABEL_CHIN_TU_ARMOR
public static final int LABEL_CHIN_TU_ARMOR- See Also:
-
LABEL_FRONT_ARMOR
public static final int LABEL_FRONT_ARMOR- See Also:
-
LABEL_RIGHT_ARMOR_1
public static final int LABEL_RIGHT_ARMOR_1- See Also:
-
LABEL_RIGHT_ARMOR_2
public static final int LABEL_RIGHT_ARMOR_2- See Also:
-
LABEL_LEFT_ARMOR_1
public static final int LABEL_LEFT_ARMOR_1- See Also:
-
LABEL_LEFT_ARMOR_2
public static final int LABEL_LEFT_ARMOR_2- See Also:
-
LABEL_REAR_ARMOR
public static final int LABEL_REAR_ARMOR- See Also:
-
LABEL_ROTOR_ARMOR_1
public static final int LABEL_ROTOR_ARMOR_1- See Also:
-
LABEL_ROTOR_ARMOR_2
public static final int LABEL_ROTOR_ARMOR_2- See Also:
-
LABEL_NUM_ARMORS
public static final int LABEL_NUM_ARMORS- See Also:
-
LABEL_CHIN_TU_IS
public static final int LABEL_CHIN_TU_IS- See Also:
-
LABEL_FRONT_IS
public static final int LABEL_FRONT_IS- See Also:
-
LABEL_RIGHT_IS_1
public static final int LABEL_RIGHT_IS_1- See Also:
-
LABEL_RIGHT_IS_2
public static final int LABEL_RIGHT_IS_2- See Also:
-
LABEL_LEFT_IS_1
public static final int LABEL_LEFT_IS_1- See Also:
-
LABEL_LEFT_IS_2
public static final int LABEL_LEFT_IS_2- See Also:
-
LABEL_REAR_IS
public static final int LABEL_REAR_IS- See Also:
-
LABEL_ROTOR_IS
public static final int LABEL_ROTOR_IS- See Also:
-
LABEL_LOC_NUMBER
public static final int LABEL_LOC_NUMBER- See Also:
-
LABEL_BAR_RATING
public static final int LABEL_BAR_RATING- See Also:
-
-
Constructor Details
-
VTOLMapSet
-
-
Method Details
-
setRest
public void setRest() -
getContentGroup
- Specified by:
getContentGroupin interfaceDisplayMapSet
-
getBackgroundDrawers
- Specified by:
getBackgroundDrawersin interfaceDisplayMapSet
-
setEntity
- Specified by:
setEntityin interfaceDisplayMapSet
-
setCriticalLocations
Description copied from interface:DisplayMapSetStripes 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 afterDisplayMapSet.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.
- Specified by:
setCriticalLocationsin interfaceDisplayMapSet- Parameters:
criticalLocations- the locations that have taken a critical hit
-