Browse Source

renamed function to check alive or not and added name getter

master
myitinos 3 years ago
parent
commit
88aabb485a
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      class/character.hpp

+ 7
- 2
class/character.hpp View File

@ -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;

Loading…
Cancel
Save