Package com.epicbot.api.shared.model
Class Skill
java.lang.Object
com.epicbot.api.shared.model.Skill
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the current level.protected abstract int[]static intgetExpAtLevel(int level) Gets the total experience at the given level.intGets the current experience.intGets the current experience needed to the next level.static intgetLevelAtExp(int experience) Gets the level at the given amount of experience.intGets the percentage to the next level.intGets the real level.protected abstract int[]protected abstract int[]intGets the total experience needed to the next level.TTL(long startTime, int startExp) Gets a formatted time to the next level.
-
Field Details
-
XP_TABLE
public static final int[] XP_TABLE
-
-
Constructor Details
-
Method Details
-
getRealLevel
public int getRealLevel()Gets the real level.- Returns:
- the skill level that has not been modified by any spells, potions etc.
-
getCurrentLevel
public int getCurrentLevel()Gets the current level.- Returns:
- the skill level that can be modified by spells, potions etc.
-
getExperience
public int getExperience()Gets the current experience.- Returns:
- int
-
getPercentToNextLevel
public int getPercentToNextLevel()Gets the percentage to the next level.- Returns:
- the percent to the next level or 0 if level is 99.
-
getTotalExperienceToNextLevel
public int getTotalExperienceToNextLevel()Gets the total experience needed to the next level.- Returns:
- int
-
getExperienceToNextLevel
public int getExperienceToNextLevel()Gets the current experience needed to the next level.- Returns:
- int
-
getExpAtLevel
public static int getExpAtLevel(int level) Gets the total experience at the given level.- Parameters:
level- the skill level- Returns:
- int
-
getLevelAtExp
public static int getLevelAtExp(int experience) Gets the level at the given amount of experience.- Parameters:
experience- the experience- Returns:
- int
-
TTL
Gets a formatted time to the next level.- Parameters:
startTime- the time the script was startedstartExp- the intial exp when the script was started- Returns:
- formatted time
-
getSkillExperiences
protected abstract int[] getSkillExperiences() -
getCurrentSkillLevels
protected abstract int[] getCurrentSkillLevels() -
getRealSkillLevels
protected abstract int[] getRealSkillLevels()
-