X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FComplexAnimation.h;h=f4a5db575d8f657809ffeaf3684b0f7fd2d6f12c;hb=107657a15613dfd6f02556e163abf6a4cb3cdd39;hp=a548cdbb9931b92d6be76388be0713765f0b1497;hpb=20e3191911c173d6c9b97dde6b99bd96f5e342cb;p=l2e.git diff --git a/src/graphics/ComplexAnimation.h b/src/graphics/ComplexAnimation.h index a548cdb..f4a5db5 100644 --- a/src/graphics/ComplexAnimation.h +++ b/src/graphics/ComplexAnimation.h @@ -1,10 +1,3 @@ -/* - * ComplexAnimation.h - * - * Created on: Aug 12, 2012 - * Author: holy - */ - #ifndef GRAPHICS_COMPLEXANIMATION_H_ #define GRAPHICS_COMPLEXANIMATION_H_ @@ -15,6 +8,9 @@ namespace graphics { class ComplexAnimation : public Animation { +public: + static const int TYPE_ID = 402; + public: ComplexAnimation() : frames(0), numFrames(0) { } ComplexAnimation(const Sprite *sprite, int frameTime, bool repeat = false) @@ -22,6 +18,7 @@ public: public: struct FrameProp { + static const int TYPE_ID = 403; FrameProp() : col(0), row(0) { } FrameProp(int col, int row, const geometry::Vector &disposition) : col(col), row(row), disposition(disposition) {} @@ -32,6 +29,7 @@ public: void SetFrames(const FrameProp *f, int num) { frames = f; numFrames = num; } static void CreateTypeDescription(); + static void Construct(void *); protected: virtual int NumFrames() const { return numFrames; };