Преглед изворни кода

added att and def getter

master
myitinos пре 5 година
родитељ
комит
bbae242f9a
1 измењених фајлова са 10 додато и 0 уклоњено
  1. +10
    -0
      class/character.hpp

+ 10
- 0
class/character.hpp Прегледај датотеку

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

Loading…
Откажи
Сачувај