public enum BattlePhase extends java.lang.Enum<BattlePhase>
Enum Constant and Description |
---|
FIGHT |
MOVE |
RECRUIT |
STRIKEBACK |
SUMMON |
Modifier and Type | Field and Description |
---|---|
private boolean |
isFightPhase |
private boolean |
isMovePhase |
private java.lang.String |
name |
Modifier and Type | Method and Description |
---|---|
boolean |
isFightPhase()
Determine if the phase is part of the fighting.
|
boolean |
isMovePhase()
Determine if the phase is part of the fighting.
|
java.lang.String |
toString()
Returns a non-localized UI string for the phase.
|
static BattlePhase |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BattlePhase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BattlePhase SUMMON
public static final BattlePhase RECRUIT
public static final BattlePhase MOVE
public static final BattlePhase FIGHT
public static final BattlePhase STRIKEBACK
private final java.lang.String name
private final boolean isMovePhase
private final boolean isFightPhase
public static BattlePhase[] values()
for (BattlePhase c : BattlePhase.values()) System.out.println(c);
public static BattlePhase 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 boolean isFightPhase()
public boolean isMovePhase()
public java.lang.String toString()
toString
in class java.lang.Enum<BattlePhase>