Selaa lähdekoodia

added checkAlive() function

master
myitinos 5 vuotta sitten
vanhempi
commit
ae11489f89
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. +5
    -0
      class/character.hpp

+ 5
- 0
class/character.hpp Näytä tiedosto

@ -34,6 +34,11 @@ class Character
return hp <= 0;
}
bool checkAlive()
{
return hp > 0;
}
int defend(int dmg)
{
dmg -= def;

Ladataan…
Peruuta
Tallenna