public abstract class Skill
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Skill.Skills |
Modifier and Type | Field and Description |
---|---|
static int[] |
XP_TABLE |
Constructor and Description |
---|
Skill(Skill.Skills skill) |
Modifier and Type | Method and Description |
---|---|
int |
getCurrentLevel()
Gets the current level.
|
protected abstract int[] |
getCurrentSkillLevels() |
static int |
getExpAtLevel(int level)
Gets the total experience at the given level.
|
int |
getExperience()
Gets the current experience.
|
int |
getExperienceToNextLevel()
Gets the current experience needed to the next level.
|
static int |
getLevelAtExp(int experience)
Gets the level at the given amount of experience.
|
int |
getPercentToNextLevel()
Gets the percentage to the next level.
|
int |
getRealLevel()
Gets the real level.
|
protected abstract int[] |
getRealSkillLevels() |
protected abstract int[] |
getSkillExperiences() |
int |
getTotalExperienceToNextLevel()
Gets the total experience needed to the next level.
|
java.lang.String |
timeToLevel(long runTime)
Gets a formatted time to the next level.
|
java.lang.String |
TTL(long runTime)
Gets a formatted time to the next level.
|
public Skill(Skill.Skills skill)
public int getRealLevel()
public int getCurrentLevel()
public int getExperience()
public int getPercentToNextLevel()
public int getTotalExperienceToNextLevel()
public int getExperienceToNextLevel()
public static int getExpAtLevel(int level)
level
- the skill levelpublic static int getLevelAtExp(int experience)
experience
- the experiencepublic java.lang.String TTL(long runTime)
runTime
- the total runtime (for example: System.currentTimeMillis() - startTime
)Time.getFormattedRuntime(long)
public java.lang.String timeToLevel(long runTime)
TTL(long)
.runTime
- the total runtime (for example: System.currentTimeMillis() - startTime
)TTL(long)
,
Time.getFormattedRuntime(long)
protected abstract int[] getSkillExperiences()
protected abstract int[] getCurrentSkillLevels()
protected abstract int[] getRealSkillLevels()