소스 검색

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;

불러오는 중...
취소
저장