X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FHero.h;h=11f1e332400eeed439b8fe021931af1dcd265d88;hb=f615f4edc547d1ca74275382cc7a9cdd8cf30ba6;hp=3274fe21b64d7a2cb373d9a12bce7c061a77abff;hpb=3f2e68e7a2377db6d1738934150f34b80bdbd0e0;p=l2e.git diff --git a/src/battle/Hero.h b/src/battle/Hero.h index 3274fe2..11f1e33 100644 --- a/src/battle/Hero.h +++ b/src/battle/Hero.h @@ -67,7 +67,9 @@ public: bool HasJewel() const { return jewel; } int AttackFrames() const { return attackFrames; } + int AttackFrameTime() const { return attackFrameTime; } int SpellFrames() const { return spellFrames; } + int SpellFrameTime() const { return spellFrameTime; } // temporary setters until loader is implemented public: @@ -90,8 +92,8 @@ public: void AddSpell(const common::Spell *s) { spells.push_back(s); } - void SetAttackFrames(int num) { attackFrames = num; } - void SetSpellFrames(int num) { spellFrames = num; } + void SetAttackFrames(int num, int time) { attackFrames = num; attackFrameTime = time; } + void SetSpellFrames(int num, int time) { spellFrames = num; spellFrameTime = time; } private: const char *name; @@ -108,7 +110,9 @@ private: std::vector spells; int attackFrames; + int attackFrameTime; int spellFrames; + int spellFrameTime; Uint16 maxHealth, health; Uint16 maxMana, mana;