public enum BattleStatsType extends java.lang.Enum<BattleStatsType> implements ITranslatable
Modifier and Type | Class and Description |
---|---|
static class |
BattleStatsType.TypeAdapter |
Enum Constant and Description |
---|
ACCURACY |
ATTACK |
DEFENSE |
EVASION |
HP |
NONE |
SPECIAL_ATTACK |
SPECIAL_DEFENSE |
SPEED |
Modifier and Type | Field and Description |
---|---|
static BattleStatsType[] |
ALL_BATTLE_STATS |
static BattleStatsType[] |
BATTLE_ONLY_STATS |
static BattleStatsType[] |
EV_IV_STATS |
static BattleStatsType[] |
UNIQUE_BATTLE_STATS |
Modifier and Type | Method and Description |
---|---|
static BattleStatsType |
fromBattleIndex(int battleIndex) |
static BattleStatsType |
fromIndex(int index) |
static BattleStatsType[] |
getAllBattleStatValues() |
static BattleStatsType[] |
getBattleOnlyStatValues() |
int |
getBattleStatIndex()
Gets the array index for the battle stat array of the equivalent stat.
|
static BattleStatsType[] |
getEVIVStatValues() |
static BattleStatsType |
getRandomBattleMutableStat() |
int |
getStatIndex()
Gets the array index for the stat array of the equivalent stat.
|
static BattleStatsType |
getStatsEffect(java.lang.String effectTypeString)
Gets a stat from its name.
|
java.lang.String |
getTranslationKey() |
static BattleStatsType[] |
getUniqueBattleStatValues() |
static boolean |
isStatsEffect(java.lang.String effectTypeString)
Checks if there is a stat with a certain name.
|
static BattleStatsType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BattleStatsType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getLocalizedName, getTranslatedName
public static final BattleStatsType NONE
public static final BattleStatsType HP
public static final BattleStatsType ATTACK
public static final BattleStatsType DEFENSE
public static final BattleStatsType SPECIAL_ATTACK
public static final BattleStatsType SPECIAL_DEFENSE
public static final BattleStatsType SPEED
public static final BattleStatsType ACCURACY
public static final BattleStatsType EVASION
public static final BattleStatsType[] EV_IV_STATS
public static final BattleStatsType[] UNIQUE_BATTLE_STATS
public static final BattleStatsType[] ALL_BATTLE_STATS
public static final BattleStatsType[] BATTLE_ONLY_STATS
public static BattleStatsType[] values()
for (BattleStatsType c : BattleStatsType.values()) System.out.println(c);
public static BattleStatsType 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 static boolean isStatsEffect(java.lang.String effectTypeString)
effectTypeString
- The name to check for stat existence.public static BattleStatsType getStatsEffect(java.lang.String effectTypeString)
effectTypeString
- The name of the stat to get.public int getStatIndex()
public int getBattleStatIndex()
public java.lang.String getTranslationKey()
getTranslationKey
in interface ITranslatable
public static BattleStatsType[] getEVIVStatValues()
public static BattleStatsType[] getUniqueBattleStatValues()
public static BattleStatsType[] getAllBattleStatValues()
public static BattleStatsType[] getBattleOnlyStatValues()
public static BattleStatsType getRandomBattleMutableStat()
public static BattleStatsType fromBattleIndex(int battleIndex)
public static BattleStatsType fromIndex(int index)