Enum Class AttackResult

java.lang.Object
java.lang.Enum<AttackResult>
com.pixelmonmod.pixelmon.battles.controller.log.AttackResult
All Implemented Interfaces:
Serializable, Comparable<AttackResult>, Constable

public enum AttackResult extends Enum<AttackResult>
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?
  
  • Enum Constant Details

  • Method Details

    • values

      public static AttackResult[] 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

      public static AttackResult valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isSuccess

      public boolean isSuccess()
    • isSuccessOrProceed

      public boolean isSuccessOrProceed()
    • parseOrNull

      public static AttackResult parseOrNull(String name)