Browse Source

added att and def getter

pull/1/head
myitinos 5 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; return maxHp;
} }
int getDef()
{
return def;
}
int getAtt()
{
return att;
}
int defend(int dmg) int defend(int dmg)
{ {
dmg -= def; dmg -= def;

Loading…
Cancel
Save