SimpleAnimation(const Sprite *sprite, int frameTime, int numFrames, int col = 0, int row = 0, bool repeat = false)
: Animation(sprite, frameTime, repeat), numFrames(numFrames), col(col), row(row) { }
SimpleAnimation(const Sprite *sprite, int frameTime, int numFrames, int col = 0, int row = 0, bool repeat = false)
: Animation(sprite, frameTime, repeat), numFrames(numFrames), col(col), row(row) { }
+public:
+ void SetNumFrames(int n) { numFrames = n; }
+ void SetCol(int c) { col = c; }
+ void SetRow(int r) { row = r; }
+
+ static void CreateTypeDescription();
+ static void Construct(void *);
+
protected:
virtual int NumFrames() const { return numFrames; };
virtual int Col(int frame) const { return col; }
protected:
virtual int NumFrames() const { return numFrames; };
virtual int Col(int frame) const { return col; }