#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"
+namespace Msp {
+namespace DemoScene {
+
class Animate: public Action
{
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
+} // namespace Msp
+
#endif