Package megamek.common
Enum Class SpecialHexDisplay.Type
- All Implemented Interfaces:
Serializable,Comparable<SpecialHexDisplay.Type>,Constable
- Enclosing class:
SpecialHexDisplay
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanGet the image for this type of special hex display.voidinit()voidsetDefaultImage(Image defaultImage) Deprecated, for removal: This API element is subject to removal in a future version.booleanstatic SpecialHexDisplay.TypeReturns the enum constant of this class with the specified name.static SpecialHexDisplay.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ARTILLERY_AUTO_HIT
-
ARTILLERY_ADJUSTED
-
ARTILLERY_INCOMING
-
ARTILLERY_TARGET
-
ARTILLERY_HIT
-
ARTILLERY_DRIFT
-
ARTILLERY_MISS
-
BOMB_HIT
-
BOMB_DRIFT
-
BOMB_MISS
-
PLAYER_NOTE
-
NUKE_INCOMING
-
NUKE_HIT
-
ORBITAL_BOMBARDMENT_INCOMING
-
ORBITAL_BOMBARDMENT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
init
public void init() -
useFolderStructure
public boolean useFolderStructure() -
getDefaultImage
-
getImage
Get the image for this type of special hex display.- Parameters:
imageName- The name of the image to get- Returns:
- The image
-
setDefaultImage
Deprecated, for removal: This API element is subject to removal in a future version. -
drawBefore
public boolean drawBefore() -
drawAfter
public boolean drawAfter()
-