Package javatro.core
Enum Class BossType
- All Implemented Interfaces:
Serializable,Comparable<BossType>,Constable
Represents the types of bosses available in the game. Each boss type modifies gameplay rules in
specific ways.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionReturns the description of the BossType.getName()Returns the name of the BossType.static BossTypeReturns a random boss type (excluding NONE).static BossTypeReturns the enum constant of this class with the specified name.static BossType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
THE_NEEDLE
-
THE_WATER
-
THE_CLUB
-
THE_WINDOW
-
THE_HEAD
-
THE_GOAD
-
THE_PLANT
-
THE_PSYCHIC
-
-
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
-
getName
Returns the name of the BossType.- Returns:
- The name of the BossType.
-
getDescription
Returns the description of the BossType.- Returns:
- The description of the BossType.
-
getRandomBossType
Returns a random boss type (excluding NONE).- Returns:
- A randomly selected boss type
-