Enum Class BattleType
- All Implemented Interfaces:
Serializable
,Comparable<BattleType>
,Constable
Different battle formats.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static BattleType
getFromOrdinal
(int ordinal) Gets a battle type from its enum ordinal.Gets the localized name of the battle type.int
next()
Gets the battle type directly after the current one.static BattleType
Returns the enum constant of this class with the specified name.static BattleType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SINGLE
-
DOUBLE
-
TRIPLE
-
ROTATION
-
RAID
-
HORDE
-
-
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
-
getNumPokemon
public int getNumPokemon() -
areSlotsLocked
public boolean areSlotsLocked() -
next
Gets the battle type directly after the current one.- Returns:
- The battle type directly after the current one.
-
getLocalizedName
Gets the localized name of the battle type.- Returns:
- The localized name of the battle type.
-
getFromOrdinal
Gets a battle type from its enum ordinal.- Parameters:
ordinal
- The ordinal of the response enum.- Returns:
- The battle type corresponding with the specified ordinal, or Single if the ordinal is out of bounds.
-