public enum ExperienceGroup extends java.lang.Enum<ExperienceGroup>
Enum Constant and Description |
---|
ERRATIC |
FAST |
FLUCTUATING |
MEDIUM_FAST |
MEDIUM_SLOW |
SLOW |
Modifier and Type | Method and Description |
---|---|
static ExperienceGroup |
getExperienceGroupFromString(java.lang.String group)
Gets the experience group with the given name (case insensitively)
Will return null if none match the name
|
int |
getExpForLevel(int level)
Calculates the experience required from a pokemonLevel to the next.
|
int |
getExpToLevel(int level)
Gets EXP required to go from 0 ->
|
static boolean |
hasExperienceGroup(java.lang.String group)
Checks if the experience group with the given name exists
|
static ExperienceGroup |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ExperienceGroup[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExperienceGroup ERRATIC
public static final ExperienceGroup FAST
public static final ExperienceGroup MEDIUM_FAST
public static final ExperienceGroup MEDIUM_SLOW
public static final ExperienceGroup SLOW
public static final ExperienceGroup FLUCTUATING
public static ExperienceGroup[] values()
for (ExperienceGroup c : ExperienceGroup.values()) System.out.println(c);
public static ExperienceGroup 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 getExpForLevel(int level)
level
- The pokemonLevel to calculate experience for.public int getExpToLevel(int level)
level
- The pokemonLevel going topublic static boolean hasExperienceGroup(java.lang.String group)
group
- The name of the grouppublic static ExperienceGroup getExperienceGroupFromString(java.lang.String group)
group
- The name of the group