Package org.rspeer.game.component.tdi
Class Skills
- java.lang.Object
-
- org.rspeer.game.component.tdi.Skills
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_EXPERIENCE
static int
MAX_LEVEL
static int
MAX_VIRTUAL_LEVEL
static int[]
XP_TABLE
-
Constructor Summary
Constructors Constructor Description Skills()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getCurrentLevel(Skill skill)
static int
getExperience(Skill skill)
static int
getExperienceAt(int deslvl)
static int
getExperienceToNextLevel(Skill skill)
static int
getLevel(Skill skill)
static int
getLevelAt(int xp)
static int
getTotalLevel()
static int
getVirtualLevel(Skill skill)
-
-
-
Field Detail
-
MAX_LEVEL
public static final int MAX_LEVEL
- See Also:
- Constant Field Values
-
MAX_VIRTUAL_LEVEL
public static final int MAX_VIRTUAL_LEVEL
- See Also:
- Constant Field Values
-
MAX_EXPERIENCE
public static final int MAX_EXPERIENCE
- See Also:
- Constant Field Values
-
XP_TABLE
public static final int[] XP_TABLE
-
-
Method Detail
-
getLevel
public static int getLevel(Skill skill)
- Parameters:
skill
- The skill- Returns:
- The base level of the skill
-
getCurrentLevel
public static int getCurrentLevel(Skill skill)
- Parameters:
skill
- The skill- Returns:
- The current level. This takes into account boosted or drained stats
-
getExperience
public static int getExperience(Skill skill)
- Parameters:
skill
- The skill- Returns:
- The experience in the skill
-
getExperienceToNextLevel
public static int getExperienceToNextLevel(Skill skill)
- Parameters:
skill
- the skill- Returns:
- the experience needed for the next level
-
getVirtualLevel
public static int getVirtualLevel(Skill skill)
-
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()
-
-