Explorar el Código

added att and def getter

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

+ 10
- 0
class/character.hpp Ver fichero

@ -57,6 +57,16 @@ class Character
return maxHp;
}
int getDef()
{
return def;
}
int getAtt()
{
return att;
}
int defend(int dmg)
{
dmg -= def;

Cargando…
Cancelar
Guardar