]> git.tdb.fi Git - libs/demoscene.git/blobdiff - source/animate.h
Allow stages to define actions
[libs/demoscene.git] / source / animate.h
index 31d1641c97b6ad696acc190fc02aed93e4dac286..ef497fa6b36d56dfaad6fee9fce41488b575b51a 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef MSP_DEMOSCENE_ANIMATE_H_
 #define MSP_DEMOSCENE_ANIMATE_H_
 
+#include <msp/gl/animatedobject.h>
 #include <msp/gl/animation.h>
 #include <msp/gl/animationplayer.h>
 #include "action.h"
@@ -23,16 +24,19 @@ public:
 
 private:
        Msp::GL::Placeable *target;
+       Msp::GL::AnimatedObject *target_obj;
        const Msp::GL::Animation *anim;
+       bool stacked;
        Msp::GL::AnimationPlayer *player;
 
 public:
        Animate();
-       Animate(Msp::GL::Placeable &, const Msp::GL::Animation &, Msp::GL::AnimationPlayer &);
+       Animate(Msp::GL::Placeable &, const Msp::GL::Animation &, Msp::GL::AnimationPlayer &, bool = false);
 
        virtual void validate() const;
 
        virtual void start(float, float);
+       virtual void end(float);
 };
 
 } // namespace DemoScene