Package com.epicbot.api.shared.model
Class Skill
- java.lang.Object
-
- com.epicbot.api.shared.model.Skill
-
public abstract class Skill extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Skill.Skills
-
Field Summary
Fields Modifier and Type Field Description static int[]
XP_TABLE
-
Constructor Summary
Constructors Constructor Description Skill(Skill.Skills skill)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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
TTL(long startTime, int startExp)
Gets a formatted time to the next level.
-
-
-
Constructor Detail
-
Skill
public Skill(Skill.Skills skill)
-
-
Method Detail
-
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
public java.lang.String TTL(long startTime, int startExp)
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()
-
-