public enum CardCondition extends java.lang.Enum<CardCondition>
Enum Constant and Description |
---|
ASLEEP |
BURNT |
CONFUSED |
PARALYZED |
POISONED |
Modifier and Type | Method and Description |
---|---|
static CardCondition |
getFromDbString(java.lang.String effect) |
java.lang.String |
getName() |
static CardCondition |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CardCondition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CardCondition POISONED
public static final CardCondition PARALYZED
public static final CardCondition ASLEEP
public static final CardCondition BURNT
public static final CardCondition CONFUSED
public static CardCondition[] values()
for (CardCondition c : CardCondition.values()) System.out.println(c);
public static CardCondition 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 java.lang.String getName()
public static CardCondition getFromDbString(java.lang.String effect)