#include "../app/Timer.h"
#include "../math/Vector.h"
+#include "../loader/noinit.h"
#include <memory>
#include <SDL.h>
Animation(const Sprite *sprite, int frameTime, bool repeat = false)
: sprite(sprite), frameTime(frameTime), repeat(repeat) { }
virtual ~Animation() { };
+protected:
+ Animation(loader::noinit_t);
public:
const Sprite *GetSprite() const { return sprite; }
void Start(app::State &ctrl);
void Start(app::Application &ctrl);
+ void Synchronize(const AnimationRunner &other) { timer = other.timer; }
void Stop();
bool Started() const;
bool Running() const;
}
-#endif /* GRAPHICS_SIMPLEANIMATION_H_ */
+#endif