瀏覽代碼

renamed function to check alive or not and added name getter

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

+ 7
- 2
class/character.hpp 查看文件

@ -32,12 +32,12 @@ class Character
this->def = def;
}
bool checkDied()
bool isDead()
{
return hp <= 0;
}
bool checkAlive()
bool isAlive()
{
return hp > 0;
}
@ -62,6 +62,11 @@ class Character
return def;
}
char *getName()
{
return name;
}
int getAtt()
{
return att;

Loading…
取消
儲存