Enum Class CharacterType
- All Implemented Interfaces:
Serializable, Comparable<CharacterType>, Constable
Represents the different types of character cards available in the game.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCharacter card representing an Artist.Character card representing a Builder.Character card representing a Gatherer.Character card representing a Hunter.Character card representing an Inventor.Character card representing a Shaman. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CharacterTypeReturns the enum constant of this class with the specified name.static CharacterType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVENTOR
Character card representing an Inventor. -
BUILDER
Character card representing a Builder. -
GATHERER
Character card representing a Gatherer. -
ARTIST
Character card representing an Artist. -
SHAMAN
Character card representing a Shaman. -
HUNTER
Character card representing a Hunter.
-
-
Constructor Details
-
CharacterType
private CharacterType()
-
-
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
-