Ver a proveniência

renamed function to check alive or not and added name getter

master
myitinos há 5 anos
ascendente
cometimento
88aabb485a
1 ficheiros alterados com 7 adições e 2 eliminações
  1. +7
    -2
      class/character.hpp

+ 7
- 2
class/character.hpp Ver ficheiro

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

Carregando…
Cancelar
Guardar