public enum BattleType extends java.lang.Enum<BattleType>
Enum Constant and Description |
---|
DOUBLE |
HORDE |
RAID |
ROTATION |
SINGLE |
TRIPLE |
Modifier and Type | Method and Description |
---|---|
boolean |
areSlotsLocked() |
static BattleType |
getFromOrdinal(int ordinal)
Gets a battle type from its enum ordinal.
|
java.lang.String |
getLocalizedName()
Gets the localized name of the battle type.
|
int |
getNumPokemon() |
BattleType |
next()
Gets the battle type directly after the current one.
|
static BattleType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BattleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BattleType SINGLE
public static final BattleType DOUBLE
public static final BattleType TRIPLE
public static final BattleType ROTATION
public static final BattleType RAID
public static final BattleType HORDE
public static BattleType[] values()
for (BattleType c : BattleType.values()) System.out.println(c);
public static BattleType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getNumPokemon()
public boolean areSlotsLocked()
public BattleType next()
public java.lang.String getLocalizedName()
public static BattleType getFromOrdinal(int ordinal)
ordinal
- The ordinal of the response enum.