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