X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FMonster.h;fp=src%2Fbattle%2FMonster.h;h=6013ebe47a027bf4fad44ca172ffa749a3945f6a;hb=d4609ba1798d82cce128b5985d60cb212b760246;hp=e4d787e741e87856be256f9f626554b78d49263b;hpb=7263bddbde91d555decd58f043f6b43f54ba2b00;p=l2e.git diff --git a/src/battle/Monster.h b/src/battle/Monster.h index e4d787e..6013ebe 100644 --- a/src/battle/Monster.h +++ b/src/battle/Monster.h @@ -52,6 +52,8 @@ public: const /* Script */ void *AttackScript() { return attackScript; } const /* Script */ void *DefenseScript() { return defenseScript; } + 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; } @@ -69,6 +71,7 @@ public: void SetStats(const Stats &s) { stats = s; } void SetReward(Uint16 exp, Uint16 gold) { expReward = exp; goldReward = gold; } + void SetMeleeAnimation(graphics::Animation *a) { meleeAnimation = a; } void SetAttackAnimation(graphics::Animation *a) { attackAnimation = a; } void SetSpellAnimation(graphics::Animation *a) { spellAnimation = a; } @@ -79,6 +82,7 @@ private: /* Script */ void *attackScript; /* Script */ void *defenseScript; + graphics::Animation *meleeAnimation; graphics::Animation *attackAnimation; graphics::Animation *spellAnimation;