class AnimationRunner {
public:
- explicit AnimationRunner(const Animation *a = 0)
- : animation(a), colOffset(0), rowOffset(0) { }
+ explicit AnimationRunner(const Animation *a = 0, int colOffset = 0, int rowOffset = 0)
+ : animation(a), colOffset(colOffset), rowOffset(rowOffset) { }
public:
bool Valid() const { return animation; }
+ void Clear() { animation = 0; timer = app::Timer<int>(); }
+
void Start(app::State &ctrl) {
timer = ctrl.GraphicsTimers().StartInterval(animation->FrameTime());
}