Explorar el Código

added checkAlive() function

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

+ 5
- 0
class/character.hpp Ver fichero

@ -34,6 +34,11 @@ class Character
return hp <= 0;
}
bool checkAlive()
{
return hp > 0;
}
int defend(int dmg)
{
dmg -= def;

Cargando…
Cancelar
Guardar