public enum Phase extends java.lang.Enum<Phase>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
Modifier and Type | Method and Description |
---|---|
static Phase |
fromInt(int i)
Deserialize enum from integer value.
|
int |
toInt()
Serialize the object to an integer code.
|
java.lang.String |
toString()
Returns a non-localized UI string for the phase.
|
static Phase |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Phase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Phase INIT
public static final Phase SPLIT
public static final Phase MOVE
public static final Phase FIGHT
public static final Phase MUSTER
public static Phase[] values()
for (Phase c : Phase.values()) System.out.println(c);
public static Phase valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Phase fromInt(int i)
i
- The number for the phase.ArrayOutOfBoundsException
- iff the number is not valid.public int toInt()
public java.lang.String toString()
toString
in class java.lang.Enum<Phase>