]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/Hero.h
alternate approach to battle animation
[l2e.git] / src / battle / Hero.h
index 97a21c23377d177d855db1bbdcda0194266bbf24..e200838487a177cef24e2ea0b200d1a35a99867f 100644 (file)
@@ -69,6 +69,8 @@ public:
        bool HasRing() const { return ring; }
        bool HasJewel() const { return jewel; }
 
+       graphics::Animation *MeleeAnimation() { return meleeAnimation; }
+       const graphics::Animation *MeleeAnimation() const { return meleeAnimation; }
        graphics::Animation *AttackAnimation() { return attackAnimation; }
        const graphics::Animation *AttackAnimation() const { return attackAnimation; }
        graphics::Animation *SpellAnimation() { return spellAnimation; }
@@ -95,6 +97,7 @@ public:
 
        void AddSpell(const common::Spell *s) { spells.push_back(s); }
 
+       void SetMeleeAnimation(graphics::Animation *a) { meleeAnimation = a; }
        void SetAttackAnimation(graphics::Animation *a) { attackAnimation = a; }
        void SetSpellAnimation(graphics::Animation *a) { spellAnimation = a; }
 
@@ -109,6 +112,7 @@ private:
        const common::Item *ring;
        const common::Item *jewel;
 
+       graphics::Animation *meleeAnimation;
        graphics::Animation *attackAnimation;
        graphics::Animation *spellAnimation;