]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/AttackAnimation.h
added Maxim's melee animation
[l2e.git] / src / battle / AttackAnimation.h
index a8ec014ecc43de3a3c003a75a10711b168d19d2d..48b1a5d65cfc590a3de0bdce16417c75162f0c02 100644 (file)
@@ -29,37 +29,41 @@ public:
        ~AttackAnimation();
 
 public:
-       void Wait(int ms);
-       void WaitForAnimation();
+       void StartTimer(int ms);
        void PlayAttackAnimation();
        void PlaySpellAnimation();
        void PlayTargetAnimation(graphics::Animation *);
        void PlayFullscreenAnimation(graphics::Animation *);
+       void WaitForTimer();
+       void WaitForAnimations();
 
 public:
        void Start(BattleState *, app::State *);
        void Update();
+       bool Running() const;
        bool Finished() const;
        void Render(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
 
 private:
        bool ExecuteCommand();
-
-       bool ExecuteWait();
-       bool ExecuteWaitAnimation();
+       bool ExecuteStartTimer();
        bool ExecuteAttackAnimation();
        bool ExecuteSpellAnimation();
        bool ExecuteTargetAnimation();
        bool ExecuteFullscreenAnimation();
+       bool ExecuteWaitTimer();
+       bool ExecuteWaitAnimations();
 
 private:
        enum Command {
-               WAIT,
-               WAIT_ANIMATION,
+               NOOP,
+               START_TIMER,
                ATTACK_ANIMATION,
                SPELL_ANIMATION,
                TARGET_ANIMATION,
                FULLSCREEN_ANIMATION,
+               WAIT_TIMER,
+               WAIT_ANIMATIONS,
        };
        union Code {
                Code(Command c) : command(c) { }