Klasse ClassProgress
java.lang.Object
de.delinkedde.mobarenareborn.progression.ClassProgress
A player's persistent progress in a single class: its level and accumulated experience.
The xp value is the experience banked toward the next level; reaching the level-up
threshold rolls it over and increments level. Progress is global per player and class,
not per arena.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
-
Konstruktordetails
-
ClassProgress
- Parameter:
className- the class identifierlevel- the current level (minimum 1)xp- the experience banked toward the next level
-
-
Methodendetails
-
fresh
Creates a fresh level-one progress for the given class.- Parameter:
className- the class identifier- Gibt zurück:
- a new progress at level 1 with no experience
-
className
- Gibt zurück:
- the class identifier
-
level
public int level()- Gibt zurück:
- the current level
-
xp
public long xp()- Gibt zurück:
- the experience banked toward the next level
-
setLevel
public void setLevel(int level) Sets the level.- Parameter:
level- the new level
-
setXp
public void setXp(long xp) Sets the banked experience.- Parameter:
xp- the new experience value
-