1 #ifndef GRAPHICS_COMPLEXANIMATION_H_
2 #define GRAPHICS_COMPLEXANIMATION_H_
12 static const int TYPE_ID = 402;
16 ComplexAnimation(const Sprite *sprite, int frameTime, bool repeat = false);
20 static const int TYPE_ID = 403;
21 FrameProp() : col(0), row(0) { }
22 FrameProp(int col, int row, const math::Vector<int> &disposition)
23 : col(col), row(row), disposition(disposition) {}
26 math::Vector<int> disposition;
28 void SetFrames(const FrameProp *f, int num) { frames = f; numFrames = num; }
30 static void CreateTypeDescription();
31 static void Construct(void *);
34 virtual int NumFrames() const;
35 virtual int Col(int frame) const;
36 virtual int Row(int frame) const;
37 virtual math::Vector<int> Offset(int frame) const;
40 const FrameProp *frames;