]> git.localhorst.tv Git - l2e.git/blobdiff - src/graphics/SimpleAnimation.h
added capsule attack/animation handling
[l2e.git] / src / graphics / SimpleAnimation.h
index 49eff9a79bc5c5385cc8c2456fc912538c94691d..88a41c5ba52e859137549e5d68737beacf340264 100644 (file)
@@ -12,10 +12,9 @@ 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) { }
+       SimpleAnimation();
+       SimpleAnimation(const Sprite *sprite, int frameTime, int numFrames,
+                       int col = 0, int row = 0, bool repeat = false);
 
 public:
        void SetNumFrames(int n) { numFrames = n; }
@@ -26,9 +25,9 @@ public:
        static void Construct(void *);
 
 protected:
-       virtual int NumFrames() const { return numFrames; };
-       virtual int Col(int frame) const { return col; }
-       virtual int Row(int frame) const { return row + frame; }
+       virtual int NumFrames() const;
+       virtual int Col(int frame) const;
+       virtual int Row(int frame) const;
 
 private:
        int numFrames;