소스 검색

addedd hp and maxHP getter

master
myitinos 5 년 전
부모
커밋
4a851a8000
1개의 변경된 파일15개의 추가작업 그리고 0개의 파일을 삭제
  1. +15
    -0
      class/character.hpp

+ 15
- 0
class/character.hpp 파일 보기

@ -42,6 +42,21 @@ class Character
return hp > 0;
}
bool restoreHP()
{
this->hp = this->maxHp;
}
int checkHP()
{
return hp;
}
int getMaxHP()
{
return maxHp;
}
int defend(int dmg)
{
dmg -= def;

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