|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<TurnType> spellcast.game.TurnType
public enum TurnType
The type of turns available in spellcast.
Enum Constant Summary | |
---|---|
AFTER_GAME
|
|
BEFORE_GAME
|
|
HASTE
|
|
NORMAL
|
|
TIMESTOP
|
Method Summary | |
---|---|
boolean |
isHaste()
Indicates whether this turn is a Haste turn. |
boolean |
isNormal()
Indicates whether this turn is a Normal turn. |
boolean |
isTimeStop()
Indicates whether this turn is a TimeStop turn. |
static TurnType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TurnType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final TurnType NORMAL
public static final TurnType HASTE
public static final TurnType TIMESTOP
public static final TurnType BEFORE_GAME
public static final TurnType AFTER_GAME
Method Detail |
---|
public static final TurnType[] values()
for(TurnType c : TurnType.values()) System.out.println(c);
public static TurnType 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 namepublic boolean isNormal()
public boolean isHaste()
public boolean isTimeStop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |