]> git.localhorst.tv Git - l2e.git/blobdiff - src/graphics/Animation.h
alternate approach to battle animation
[l2e.git] / src / graphics / Animation.h
index 0c6ae288b4a5e04220f764d9c5ba6b4ee05597c4..6af75d0a64639ae129a803b96f4c5249c4c7afea 100644 (file)
@@ -39,9 +39,15 @@ public:
        void Stop() {
                timer = app::Timer<Uint32>();
        }
+       bool Started() const {
+               return timer.Started();
+       }
        bool Running() const {
                return timer.Running() && (repeat || timer.Iteration() < NumFrames());
        }
+       bool Finished() const {
+               return Started() && !Running();
+       }
        bool JustFinished() const {
                return timer.JustHit() && timer.Iteration() == NumFrames();
        }