Browse Source

addedd level getter

master
myitinos 5 years ago
parent
commit
bddb6a47fd
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      class/player.hpp

+ 5
- 0
class/player.hpp View File

@ -26,6 +26,11 @@ class Player : public Character
this->level = level;
}
int getLevel()
{
return level;
}
bool checkLevelup()
{
return xp > (level * level);

Loading…
Cancel
Save