This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 24th, 2012  |  syntax: C++  |  size: 0.63 KB  |  views: 34  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. };
clone this paste RAW Paste Data