00001 #ifndef __ANIMATION_H 00002 #define __ANIMATION_H 00003 00004 class Animation 00005 { 00006 private: 00007 AnimationInfo *animationinfo; 00008 int frame; 00009 int timer; 00010 public: 00011 Animation( AnimationInfo *ai ); 00012 ~Animation (); 00013 bool IncreaseTimer( int t, int cyclic ); 00014 SDL_Surface* GetFrame(); 00015 int GetWidth(); 00016 int GetHeight(); 00017 AnimationInfo *GetAnimationinfo(); 00018 Mask* GetMask (); 00019 void SetFrame( int _frame ); 00020 void DrawCenteredAt( int x, int y, SDL_Surface* ); 00021 }; 00022 00023 #endif // __ANIMATION_H