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