X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Faction.h;h=dacf788fa31597d4864249ae038f5a60f5132ea9;hb=462cb9fc40ae7fec26615c652e95991be89ea8ae;hp=980b038a27b4469cd74ff49b5df0153ace8b70b5;hpb=da21a5a971c2dfa3fdd729c4f799908253bb3873;p=libs%2Fdemoscene.git diff --git a/source/action.h b/source/action.h index 980b038..dacf788 100644 --- a/source/action.h +++ b/source/action.h @@ -1,13 +1,31 @@ #ifndef MSP_DEMOSCENE_ACTION_H_ #define MSP_DEMOSCENE_ACTION_H_ +#include + +namespace Msp { +namespace DemoScene { + +class Demo; + class Action { +public: + class Loader: public Msp::DataFile::ObjectLoader + { + protected: + Demo &demo; + + Loader(Action &, Demo &); + }; + protected: Action() { } public: virtual ~Action() { } + virtual void validate() const = 0; + virtual void start(float, float) { } virtual void beat(int) { } virtual void tick(float, float) { } @@ -36,4 +54,7 @@ public: virtual void interpolate(float, float) { } }; +} // namespace DemoScene +} // namespace Msp + #endif