Browse Source

added checkAlive() function

master
myitinos 3 years ago
parent
commit
ae11489f89
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      class/character.hpp

+ 5
- 0
class/character.hpp View File

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

Loading…
Cancel
Save