Browse Source

renamed function to check alive or not and added name getter

master
myitinos 5 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; this->def = def;
} }
bool checkDied()
bool isDead()
{ {
return hp <= 0; return hp <= 0;
} }
bool checkAlive()
bool isAlive()
{ {
return hp > 0; return hp > 0;
} }
@ -62,6 +62,11 @@ class Character
return def; return def;
} }
char *getName()
{
return name;
}
int getAtt() int getAtt()
{ {
return att; return att;

Loading…
Cancel
Save