X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbattle%2FMonster.h;h=232da8fae99bd9f705229bc5684400eb0a49b78d;hb=8967f42789c619df6e5874f5c6a9ea4b6b6c33db;hp=0891a2d246c5f4451518e1312ba990317a5cdcf1;hpb=e3a38cbb756b2f0b77afcf91bf2a397bb1677bce;p=l2e.git diff --git a/src/battle/Monster.h b/src/battle/Monster.h index 0891a2d..232da8f 100644 --- a/src/battle/Monster.h +++ b/src/battle/Monster.h @@ -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;