]> git.localhorst.tv Git - l2e.git/blobdiff - src/graphics/SimpleAnimation.h
removed stupid file headers that eclipse put in
[l2e.git] / src / graphics / SimpleAnimation.h
index d15c1d9a1258e19bd1ff1f08021fe2f3620c74bd..49eff9a79bc5c5385cc8c2456fc912538c94691d 100644 (file)
@@ -1,10 +1,3 @@
-/*
- *  SimpleAnimation.h
- *
- *  Created on: Aug 11, 2012
- *      Author: holy
- */
-
 #ifndef GRAPHICS_SIMPLEANIMATION_H_
 #define GRAPHICS_SIMPLEANIMATION_H_
 
@@ -15,12 +8,23 @@ namespace graphics {
 class SimpleAnimation
 : public Animation {
 
+public:
+       static const int TYPE_ID = 408;
+
 public:
        SimpleAnimation()
        : numFrames(0), col(0), row(0) { }
        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; }