public enum AttackResult extends java.lang.Enum<AttackResult>
Enum Constant and Description |
---|
charging |
failed |
hit |
ignore |
killed |
missed |
notarget |
proceed |
succeeded |
unable |
Modifier and Type | Method and Description |
---|---|
boolean |
isSuccess() |
static AttackResult |
parseOrNull(java.lang.String name) |
static AttackResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AttackResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AttackResult proceed
public static final AttackResult hit
public static final AttackResult ignore
public static final AttackResult killed
public static final AttackResult succeeded
public static final AttackResult charging
public static final AttackResult unable
public static final AttackResult failed
public static final AttackResult missed
public static final AttackResult notarget
public static AttackResult[] values()
for (AttackResult c : AttackResult.values()) System.out.println(c);
public static AttackResult 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 isSuccess()
public static AttackResult parseOrNull(java.lang.String name)