Parcourir la source

renamed function to check alive or not and added name getter

master
myitinos il y a 5 ans
Parent
révision
88aabb485a
1 fichiers modifiés avec 7 ajouts et 2 suppressions
  1. +7
    -2
      class/character.hpp

+ 7
- 2
class/character.hpp Voir le fichier

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

Chargement…
Annuler
Enregistrer