]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/Monster.h
moved monsters' attack choices to Monster
[l2e.git] / src / battle / Monster.h
index 0891a2d246c5f4451518e1312ba990317a5cdcf1..232da8fae99bd9f705229bc5684400eb0a49b78d 100644 (file)
@@ -8,6 +8,7 @@
 #ifndef BATTLE_MONSTER_H_
 #define BATTLE_MONSTER_H_
 
+#include "AttackChoice.h"
 #include "Stats.h"
 #include "../graphics/Animation.h"
 
@@ -76,6 +77,9 @@ public:
        void SetAttackAnimation(const graphics::Animation *a) { attackAnimation = a; }
        void SetSpellAnimation(const graphics::Animation *a) { spellAnimation = a; }
 
+       AttackChoice &GetAttackChoice() { return attackChoice; }
+       const AttackChoice &GetAttackChoice() const { return attackChoice; }
+
 private:
        const char *name;
        graphics::Sprite *sprite;
@@ -89,6 +93,8 @@ private:
 
        graphics::AnimationRunner animation;
 
+       AttackChoice attackChoice;
+
        Uint16 maxHealth, health;
        Uint16 maxMana, mana;