Explorar el Código

addedd level getter

master
myitinos hace 5 años
padre
commit
bddb6a47fd
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. +5
    -0
      class/player.hpp

+ 5
- 0
class/player.hpp Ver fichero

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

Cargando…
Cancelar
Guardar