public class ExperienceTable
extends java.lang.Object
Constructor and Description |
---|
ExperienceTable() |
Modifier and Type | Method and Description |
---|---|
long |
getExperienceToNextLevel(int currentLevel,
long currentExp)
Returns the experience needed to reach the next level.
|
int |
getPercentsToNextLevel(int currentLevel,
long currentExp)
Returns the experience fraction of the current level in percents.
|
void |
setExpTable(long[] expTable)
Updates the experience table information.
|
public long getExperienceToNextLevel(int currentLevel, long currentExp)
currentLevel
- the current levelcurrentExp
- the current experiencecurrentLevel+1
public int getPercentsToNextLevel(int currentLevel, long currentExp)
currentLevel
- the current levelcurrentExp
- the current experiencepublic void setExpTable(long[] expTable)
expTable
- the new experience table