Newer
Older
cg / include / animation.h
@glproj03 glproj03 on 31 Jan 2006 693 bytes Changes:
  1. #ifndef _ANIMATION_H
  2. #define _ANIMATION_H
  3.  
  4. #include "thing.h"
  5.  
  6. #include <string>
  7.  
  8. #ifndef PI
  9. #define PI 3.14159265f
  10. #endif
  11.  
  12. using namespace std;
  13.  
  14. class Animation {
  15. public:
  16. Animation();
  17. void init();
  18. void tick();
  19. };
  20.  
  21. class UserAnimation : public Animation {
  22. private:
  23. int mouseX;
  24. int mouseY;
  25. float speed;
  26. int current;
  27. int colorpt;
  28. std::vector<Color*> colors;
  29. std::vector<Thing*> things;
  30. int kbdlock;
  31. bool showNormals;
  32. bool showMe;
  33. float delta;
  34. bool trace;
  35. public:
  36. UserAnimation();
  37. UserAnimation(Thing* t);
  38. UserAnimation(std::vector<Thing*> ths);
  39. void addThing(Thing* t);
  40. void addColor(Color* t);
  41. void init();
  42. void tick();
  43. };
  44.  
  45. #endif