Przeglądaj źródła

addedd level getter

master
myitinos 5 lat temu
rodzic
commit
bddb6a47fd
1 zmienionych plików z 5 dodań i 0 usunięć
  1. +5
    -0
      class/player.hpp

+ 5
- 0
class/player.hpp Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz