Browse Source

added att and def getter

pull/1/head
myitinos 6 years ago
parent
commit
bbae242f9a
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      class/character.hpp

+ 10
- 0
class/character.hpp View File

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

Loading…
Cancel
Save