Class Skills
java.lang.Object
org.rspeer.game.component.tdi.Skills
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetCurrentLevel(Skill skill) static intgetExperience(Skill skill) static intgetExperienceAt(int deslvl) static intgetExperienceToNextLevel(Skill skill) static intstatic intgetLevelAt(int xp) static intstatic intgetVirtualLevel(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()
-