Enum Class Phase

java.lang.Object
java.lang.Enum<Phase>
com.pixelmonmod.tcg.duel.Phase
All Implemented Interfaces:
Serializable, Comparable<Phase>, Constable

public enum Phase extends Enum<Phase>
  • Enum Constant Details

    • INIT

      public static final Phase INIT
    • MULLIGAN

      public static final Phase MULLIGAN
    • DRAW

      public static final Phase DRAW
    • PLAYBASIC

      public static final Phase PLAYBASIC
    • EVOLVE

      public static final Phase EVOLVE
    • ENERGY

      public static final Phase ENERGY
    • TRAINER

      public static final Phase TRAINER
    • RETREAT

      public static final Phase RETREAT
    • POWER

      public static final Phase POWER
    • ATTACK

      public static final Phase ATTACK
    • END

      public static final Phase END
    • SELECT

      public static final Phase SELECT
    • WAIT

      public static final Phase WAIT
    • ADMIN

      public static final Phase ADMIN
    • WIN

      public static final Phase WIN
    • LOSE

      public static final Phase LOSE
    • QUIT

      public static final Phase QUIT
  • Method Details

    • values

      public static Phase[] 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 Phase 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
    • getIDFromPhase

      public static int getIDFromPhase(Phase phase)
    • getPhaseFromID

      public static Phase getPhaseFromID(int id)