Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "timer.h"
- #include "SDLib.h"
- #include "global.h"
- class Animation
- {
- public:
- Animation(void);
- Animation(int cFrame, int numOfFrames, float timePerFrame[], bool animateOnlyOnce = false, bool setIndividualFrameTimes = true);
- Animation(int cFrame, int numOfFrames, float timePerFrame, bool animateOnlyOnce = false);
- void Update(SDLib& sdlLib);
- timer Timer;
- int currentFrame, oldFrame, numberOfFrames;
- float maxTimePerFrame, currentTime;
- bool animateOnce, individualFrameTimes, animating;
- float a_maxTimePerFrame[20];
- global::Rectangle RectArray[20];
- global::Vector2 Vector2Array[20];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement