Package com.misc
Enum Constants.FortressType
- java.lang.Object
-
- java.lang.Enum<Constants.FortressType>
-
- com.misc.Constants.FortressType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Constants.FortressType>
- Enclosing class:
- Constants
public static enum Constants.FortressType extends java.lang.Enum<Constants.FortressType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDamage()intgetHealing()intgetHealth()floatgetRange()static Constants.FortressTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Constants.FortressType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLIFFORD
public static final Constants.FortressType CLIFFORD
-
MINSTER
public static final Constants.FortressType MINSTER
-
RAIL
public static final Constants.FortressType RAIL
-
CASTLE1
public static final Constants.FortressType CASTLE1
-
CASTLE2
public static final Constants.FortressType CASTLE2
-
MOSSY
public static final Constants.FortressType MOSSY
-
-
Method Detail
-
values
public static Constants.FortressType[] 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 (Constants.FortressType c : Constants.FortressType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Constants.FortressType 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
-
getDamage
public int getDamage()
-
getHealing
public int getHealing()
-
getRange
public float getRange()
-
getHealth
public int getHealth()
-
-