X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FSimpleAnimation.h;h=49eff9a79bc5c5385cc8c2456fc912538c94691d;hb=107657a15613dfd6f02556e163abf6a4cb3cdd39;hp=003a03120c5b451908e3f72443e55251d2c15cb1;hpb=d5959073b2c413ba1bd6f3d14bc8bcf59304e488;p=l2e.git diff --git a/src/graphics/SimpleAnimation.h b/src/graphics/SimpleAnimation.h index 003a031..49eff9a 100644 --- a/src/graphics/SimpleAnimation.h +++ b/src/graphics/SimpleAnimation.h @@ -1,10 +1,3 @@ -/* - * SimpleAnimation.h - * - * Created on: Aug 11, 2012 - * Author: holy - */ - #ifndef GRAPHICS_SIMPLEANIMATION_H_ #define GRAPHICS_SIMPLEANIMATION_H_ @@ -15,6 +8,9 @@ namespace graphics { class SimpleAnimation : public Animation { +public: + static const int TYPE_ID = 408; + public: SimpleAnimation() : numFrames(0), col(0), row(0) { } @@ -26,6 +22,9 @@ public: 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; }