Enum Class TwoAttackPokemon

java.lang.Object
java.lang.Enum<TwoAttackPokemon>
Pokemon.Attributes.TwoAttackPokemon
All Implemented Interfaces:
Serializable, Comparable<TwoAttackPokemon>, Constable

public enum TwoAttackPokemon extends Enum<TwoAttackPokemon>
Enumeration identifying Pokémon that have exactly two available attacks.

TwoAttackPokemon is used to categorize Pokémon whose move sets are limited to two attacks. This is useful in battle logic, UI display, or validation to enforce attack-related constraints for these specific Pokémon.

  • Enum Constant Details

    • PIKACHU

      public static final TwoAttackPokemon PIKACHU
      Pikachu has two available attacks.
    • RAICHU

      public static final TwoAttackPokemon RAICHU
      Raichu has two available attacks.
    • IVYSAUR

      public static final TwoAttackPokemon IVYSAUR
      Ivysaur has two available attacks.
    • WARTORTLE

      public static final TwoAttackPokemon WARTORTLE
      Wartortle has two available attacks.
  • Constructor Details

    • TwoAttackPokemon

      private TwoAttackPokemon()
  • Method Details

    • values

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