Advertisement
Guest User

Untitled

a guest
Jul 24th, 2012
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. #include "timer.h"
  2. #include "SDLib.h"
  3. #include "global.h"
  4.  
  5. class Animation
  6. {
  7.     public:
  8.  
  9.         Animation(void);
  10.         Animation(int cFrame, int numOfFrames, float timePerFrame[], bool animateOnlyOnce = false, bool setIndividualFrameTimes = true);
  11.         Animation(int cFrame, int numOfFrames, float timePerFrame, bool animateOnlyOnce = false);
  12.         void Update(SDLib& sdlLib);
  13.    
  14.         timer Timer;
  15.         int currentFrame, oldFrame, numberOfFrames;
  16.         float maxTimePerFrame, currentTime;
  17.         bool animateOnce, individualFrameTimes, animating;
  18.  
  19.         float a_maxTimePerFrame[20];
  20.         global::Rectangle RectArray[20];
  21.         global::Vector2 Vector2Array[20];
  22. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement