Преглед изворни кода

addedd hp and maxHP getter

pull/1/head
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;

Loading…
Откажи
Сачувај