Enum Constant and Description |
---|
ACCURACY |
ATTACK |
DEFENSE |
EVASION |
HP |
SPECIAL_ATTACK |
SPECIAL_DEFENSE |
SPEED |
Modifier and Type | Method and Description |
---|---|
boolean |
isHidden()
Определяет, скрытая ли данная характеристика.
|
static Stat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Stat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Stat HP
public static final Stat ATTACK
public static final Stat DEFENSE
public static final Stat SPEED
public static final Stat SPECIAL_ATTACK
public static final Stat SPECIAL_DEFENSE
public static final Stat ACCURACY
public static final Stat EVASION
public static Stat[] values()
for (Stat c : Stat.values()) System.out.println(c);
public static Stat 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 isHidden()