Gruppe22.Backend.Actor.LevelUp C# (CSharp) Method

LevelUp() public method

Method called when the exp reach the needed exp. Lets the player level up. The actor gains abilitypoints, skills and his health is set to maxhealth. Also the needed exp increase for the next level.
public LevelUp ( ) : void
return void
        public void LevelUp()
        {
            _level++;
            _abilityPoints += 10;
            _skills += 1;
            _expNeeded = 3 * (_level + 1) ^ 2 + 83 * (_level + 1) + 41;
            _health = _maxhealth;
        }