X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FHero.h;h=3274fe21b64d7a2cb373d9a12bce7c061a77abff;hb=3f2e68e7a2377db6d1738934150f34b80bdbd0e0;hp=499239d961beefa21410a3464d4e147eb2c86565;hpb=fa3de7178227b9cc7f11c92208b5904cee3ae4c4;p=l2e.git diff --git a/src/battle/Hero.h b/src/battle/Hero.h index 499239d..3274fe2 100644 --- a/src/battle/Hero.h +++ b/src/battle/Hero.h @@ -66,6 +66,9 @@ public: bool HasRing() const { return ring; } bool HasJewel() const { return jewel; } + int AttackFrames() const { return attackFrames; } + int SpellFrames() const { return spellFrames; } + // temporary setters until loader is implemented public: void SetName(const char *n) { name = n; } @@ -87,6 +90,9 @@ public: void AddSpell(const common::Spell *s) { spells.push_back(s); } + void SetAttackFrames(int num) { attackFrames = num; } + void SetSpellFrames(int num) { spellFrames = num; } + private: const char *name; graphics::Sprite *sprite; @@ -100,7 +106,9 @@ private: // TODO: vector does not seem to be a good choice std::vector spells; - // TODO: equipment list + + int attackFrames; + int spellFrames; Uint16 maxHealth, health; Uint16 maxMana, mana;