瀏覽代碼

addedd level getter

master
myitinos 5 年之前
父節點
當前提交
bddb6a47fd
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. +5
    -0
      class/player.hpp

+ 5
- 0
class/player.hpp 查看文件

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

Loading…
取消
儲存