Package megamek.client.ui.clientGUI
Class DamageLevelColors
java.lang.Object
megamek.client.ui.clientGUI.DamageLevelColors
Maps a unit's damage level to the colour used to show it. The board's unit label and the mini-map's damage pip both
use this, so the same damage level always has the same colour.
-
Method Summary
-
Method Details
-
forEntity
- Parameters:
entity- the unit to look at- Returns:
- the colour for the unit's current damage level, or
nullwhen it is undamaged
-
forDamageLevel
- Parameters:
damageLevel- one of theEntity.DMG_*constants- Returns:
- the colour for that damage level, or
nullforEntity.DMG_NONEand unknown values
-