Package org.rspeer.game.component.tdi
Class Skills
java.lang.Object
org.rspeer.game.component.tdi.Skills
Provides operations relating to local player stats
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getCurrentLevel
(Skill skill) static int
getExperience
(Skill skill) static int
getExperienceAt
(int deslvl) static int
getExperienceToNextLevel
(Skill skill) static int
static int
getLevelAt
(int xp) static int
static int
getVirtualLevel
(Skill skill)
-
Field Details
-
MAX_LEVEL
public static final int MAX_LEVEL- See Also:
-
MAX_VIRTUAL_LEVEL
public static final int MAX_VIRTUAL_LEVEL- See Also:
-
MAX_EXPERIENCE
public static final int MAX_EXPERIENCE- See Also:
-
XP_TABLE
public static final int[] XP_TABLE
-
-
Constructor Details
-
Skills
public Skills()
-
-
Method Details
-
getLevel
- Parameters:
skill
- The skill- Returns:
- The base level of the skill
-
getCurrentLevel
- Parameters:
skill
- The skill- Returns:
- The current level. This takes into account boosted or drained stats
-
getExperience
- Parameters:
skill
- The skill- Returns:
- The experience in the skill
-
getExperienceToNextLevel
- Parameters:
skill
- the skill- Returns:
- the experience needed for the next level
-
getVirtualLevel
-
getLevelAt
public static int getLevelAt(int xp) -
getExperienceAt
public static int getExperienceAt(int deslvl) - Parameters:
deslvl
- The destination level- Returns:
- The experience needed to progress to the desired level.
-
getTotalLevel
public static int getTotalLevel()
-