]> git.localhorst.tv Git - l2e.git/blobdiff - src/graphics/SimpleAnimation.h
added setters for animations
[l2e.git] / src / graphics / SimpleAnimation.h
index d15c1d9a1258e19bd1ff1f08021fe2f3620c74bd..003a03120c5b451908e3f72443e55251d2c15cb1 100644 (file)
@@ -21,6 +21,11 @@ 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; }
+
 protected:
        virtual int NumFrames() const { return numFrames; };
        virtual int Col(int frame) const { return col; }