Package com.starpoints.game
Enum ShieldType
- java.lang.Object
-
- java.lang.Enum<ShieldType>
-
- com.starpoints.game.ShieldType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ShieldType>
public enum ShieldType extends java.lang.Enum<ShieldType>
Shield types for graphic display.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description blackened
Shield against holes.darkred
Shield against item losses.explosion
Shield against explosion.general
Shield against any energy loss.grayed
Shield against gray energy losses.heat
Shield against heat.ram
Shield against ram attacks.rocket
Shield against rocket impacts.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ShieldType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ShieldType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
explosion
public static final ShieldType explosion
Shield against explosion.
-
ram
public static final ShieldType ram
Shield against ram attacks.
-
rocket
public static final ShieldType rocket
Shield against rocket impacts.
-
heat
public static final ShieldType heat
Shield against heat.
-
blackened
public static final ShieldType blackened
Shield against holes.
-
grayed
public static final ShieldType grayed
Shield against gray energy losses.
-
darkred
public static final ShieldType darkred
Shield against item losses.
-
general
public static final ShieldType general
Shield against any energy loss.
-
-
Method Detail
-
values
public static ShieldType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ShieldType c : ShieldType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ShieldType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-