1 #ifndef GRAPHICS_SIMPLEANIMATION_H_
2 #define GRAPHICS_SIMPLEANIMATION_H_
12 static const int TYPE_ID = 408;
16 SimpleAnimation(const Sprite *sprite, int frameTime, int numFrames,
17 int col = 0, int row = 0, bool repeat = false);
20 void SetNumFrames(int n) { numFrames = n; }
21 void SetCol(int c) { col = c; }
22 void SetRow(int r) { row = r; }
24 static void CreateTypeDescription();
25 static void Construct(void *);
28 virtual int NumFrames() const;
29 virtual int Col(int frame) const;
30 virtual int Row(int frame) const;