X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fanimate.h;fp=source%2Fanimate.h;h=d386a7ac452a90cedb392cadf5c859a9f2c15e31;hb=34051ffdca091ad3971c1382c71c5fc58b7ade0f;hp=0000000000000000000000000000000000000000;hpb=7857d6ec5961f94bc926b1a969f2c841713f9650;p=libs%2Fdemoscene.git diff --git a/source/animate.h b/source/animate.h new file mode 100644 index 0000000..d386a7a --- /dev/null +++ b/source/animate.h @@ -0,0 +1,35 @@ +#ifndef MSP_DEMOSCENE_ANIMATE_H_ +#define MSP_DEMOSCENE_ANIMATE_H_ + +#include +#include +#include "action.h" + +class Animate: public Action +{ +public: + class Loader: public Msp::DataFile::DerivedObjectLoader + { + public: + Loader(Animate &, Demo &); + + private: + void animation(const std::string &); + void target(const std::string &); + }; + +private: + Msp::GL::Placeable *target; + const Msp::GL::Animation *anim; + Msp::GL::AnimationPlayer *player; + +public: + Animate(); + Animate(Msp::GL::Placeable &, const Msp::GL::Animation &, Msp::GL::AnimationPlayer &); + + virtual void validate() const; + + virtual void start(float, float); +}; + +#endif