Esempio n. 1
0
 public void setExperiencePoints(Integer experiencePoints) {
   this.experiencePoints = experiencePoints;
   // call to level up on all experience gains
   if (CharacterUtils.isAtLevelUp(this)) {
     this.levelUp();
   }
 }
Esempio n. 2
0
 public void levelUp() {
   CharacterUtils.levelUpCharacter(this);
 }