Newer
Older
cg / include / animation.h
@glproj03 glproj03 on 30 Jan 2006 621 bytes Started work on UserAnimation.
#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;
		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 init();
		void tick();
};

#endif