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 intMAX_EXPERIENCEstatic intMAX_LEVELstatic intMAX_VIRTUAL_LEVELstatic int[]XP_TABLE
-
Constructor Summary
Constructors Constructor Description Skills()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetCurrentLevel(Skill skill)static intgetExperience(Skill skill)static intgetExperienceAt(int deslvl)static intgetExperienceToNextLevel(Skill skill)static intgetLevel(Skill skill)static intgetLevelAt(int xp)static intgetTotalLevel()static intgetVirtualLevel(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()
-
-