X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FSimpleAnimation.h;h=8374f0825363d3b80b05fe222cdfbd4db36ff61c;hb=a67a3c4f6bc11cd5284d6c5aabf4a3e180517a03;hp=d15c1d9a1258e19bd1ff1f08021fe2f3620c74bd;hpb=843c216fec572902bfae1fce95671b0d17aef946;p=l2e.git diff --git a/src/graphics/SimpleAnimation.h b/src/graphics/SimpleAnimation.h index d15c1d9..8374f08 100644 --- a/src/graphics/SimpleAnimation.h +++ b/src/graphics/SimpleAnimation.h @@ -21,6 +21,14 @@ public: 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; }