Explorar el Código

renamed function to check alive or not and added name getter

master
myitinos hace 5 años
padre
commit
88aabb485a
Se han modificado 1 ficheros con 7 adiciones y 2 borrados
  1. +7
    -2
      class/character.hpp

+ 7
- 2
class/character.hpp Ver fichero

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

Cargando…
Cancelar
Guardar