X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fanimate.h;h=ef497fa6b36d56dfaad6fee9fce41488b575b51a;hb=HEAD;hp=30f0c527b9e952b0da433fa29e4073bd3f44f85e;hpb=02613d179c906075a0ad05a3aae46b3811f322aa;p=libs%2Fdemoscene.git diff --git a/source/animate.h b/source/animate.h index 30f0c52..ef497fa 100644 --- a/source/animate.h +++ b/source/animate.h @@ -1,6 +1,7 @@ #ifndef MSP_DEMOSCENE_ANIMATE_H_ #define MSP_DEMOSCENE_ANIMATE_H_ +#include #include #include #include "action.h" @@ -23,17 +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