Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _ANIMATION_HEADER
- #define _ANIMATION_HEADER
- #include <SDL/SDL.h>
- class Animation
- {
- private :
- int MAX_X;
- int MAX_Y;
- int FrameRate; //in Milliseconds
- int MaxFrames;
- int CurrentFrame;
- int FrameTA; // Current Frame = Current Frame + FrameTa
- int OldTime; //Timer
- int PosX;
- int PosY;
- public :
- Animation();
- bool Working; //True if working;0 if not;
- int Direction; //0 if Right; 1 if left;
- void Anima(); //Function to actually Animate
- void SetFrameRate(int Rate);
- void SetCurrentFrame(int Frame);
- int GetCurrentFrame();
- int retrievePosX();
- int retrievePosY();
- };
- #endif // _ANIMATION_HEADER
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement