Enum Class CharacterType

java.lang.Object
java.lang.Enum<CharacterType>
it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType
All Implemented Interfaces:
Serializable, Comparable<CharacterType>, Constable

public enum CharacterType extends Enum<CharacterType>
Represents the different types of character cards available in the game.
  • Enum Constant Details

    • INVENTOR

      public static final CharacterType INVENTOR
      Character card representing an Inventor.
    • BUILDER

      public static final CharacterType BUILDER
      Character card representing a Builder.
    • GATHERER

      public static final CharacterType GATHERER
      Character card representing a Gatherer.
    • ARTIST

      public static final CharacterType ARTIST
      Character card representing an Artist.
    • SHAMAN

      public static final CharacterType SHAMAN
      Character card representing a Shaman.
    • HUNTER

      public static final CharacterType HUNTER
      Character card representing a Hunter.
  • Constructor Details

    • CharacterType

      private CharacterType()
  • Method Details

    • values

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