1 #ifndef GRAPHICS_SIMPLEANIMATION_H_
2 #define GRAPHICS_SIMPLEANIMATION_H_
5 #include "../loader/noinit.h"
13 static const int TYPE_ID = 408;
17 SimpleAnimation(const Sprite *sprite, int frameTime, int numFrames,
18 int col = 0, int row = 0, bool repeat = false);
20 SimpleAnimation(loader::noinit_t);
23 void SetNumFrames(int n) { numFrames = n; }
24 void SetCol(int c) { col = c; }
25 void SetRow(int r) { row = r; }
27 static void CreateTypeDescription();
28 static void Construct(void *);
29 static void Initialize(void *);
32 virtual int NumFrames() const;
33 virtual int Col(int frame) const;
34 virtual int Row(int frame) const;