Enum Constant and Description |
---|
ADMIN |
ATTACK |
DRAW |
END |
ENERGY |
EVOLVE |
INIT |
LOSE |
MULLIGAN |
PLAYBASIC |
POWER |
QUIT |
RETREAT |
SELECT |
TRAINER |
WAIT |
WIN |
Modifier and Type | Method and Description |
---|---|
static int |
getIDFromPhase(Phase phase) |
static Phase |
getPhaseFromID(int id) |
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 MULLIGAN
public static final Phase DRAW
public static final Phase PLAYBASIC
public static final Phase EVOLVE
public static final Phase ENERGY
public static final Phase TRAINER
public static final Phase RETREAT
public static final Phase POWER
public static final Phase ATTACK
public static final Phase END
public static final Phase SELECT
public static final Phase WAIT
public static final Phase ADMIN
public static final Phase WIN
public static final Phase LOSE
public static final Phase QUIT
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 int getIDFromPhase(Phase phase)
public static Phase getPhaseFromID(int id)