#ifndef _ANIMATION_H #define _ANIMATION_H #include "thing.h" #include <string> #ifndef PI #define PI 3.14159265f #endif using namespace std; class Animation { public: Animation(); void init(); void tick(); }; class UserAnimation : public Animation { private: int mouseX; int mouseY; float speed; int current; int colorpt; std::vector<Color*> colors; std::vector<Thing*> things; int kbdlock; bool showNormals; bool showMe; float delta; bool trace; public: UserAnimation(); UserAnimation(Thing* t); UserAnimation(std::vector<Thing*> ths); void addThing(Thing* t); void addColor(Color* t); void init(); void tick(); }; #endif