: name("")
, sprite(0)
+, weapon(0)
+, armor(0)
+, shield(0)
+, helmet(0)
+, ring(0)
+, jewel(0)
+
+, meleeAnimation(0)
+, attackAnimation(0)
+, spellAnimation(0)
+
, maxHealth(0)
, health(0)
, maxMana(0)
}
+
+void Hero::SubtractHealth(int amount) {
+ if (amount > Health()) {
+ health = 0;
+ } else {
+ health -= amount;
+ }
+}
+
}