Enum Class AttackResult
- All Implemented Interfaces:
Serializable,Comparable<AttackResult>,Constable
The result of any part of an attack.
charging Used to signify that for a multi-turn attack, the Pixelmon has completed the charging turn.
failed Designates that an effect or move failed.
hit Used in multi-strike moves to signify that one specific hit of a multi-strike move succeeded.
ignore Designates that the result of a move or effect should be ignored.
immune Designates that a target's typing made it immune to the attack.
killed Designates that the target has fainted during the course of the effect.
missed Designates that a move or an effect that rerolls its own accuracy missed the target.
notarget Designates that the effect or move no longer has a target to hit.
proceed Designates that an effect neither succeeded nor failed.
succeeded Designates that an effect or move succeeded.
unable ??? Not used anywhere?
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanstatic AttackResultparseOrNull(String name) static AttackResultReturns the enum constant of this class with the specified name.static AttackResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
proceed
-
hit
-
ignore
-
killed
-
succeeded
-
charging
-
unable
-
failed
-
missed
-
notarget
-
immune
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isSuccess
public boolean isSuccess() -
isSuccessOrProceed
public boolean isSuccessOrProceed() -
parseOrNull
-