
#ifndef PLANET_H
#define PLANET_H
#define ANTIGRAVITY false
#define GRAVITY true

#define PLANETMINDIMENSION 15
#define PLANETMAXDIMENSION 80
#define PLANETMAXSPEED 100
#define PLANETMASSSIZERATIO 100
#define PLANETMAXROTFREQ 30
#define NUMPLANETS MAXPLANETS
#define GRAVITYCONSTANT 3
#define MAXPLANETS 6
#define SIDEMASS 800000

#include "screen.h"
#include <vector>

using namespace std;

class planet {
	public:
		float x;
		float y;
		float speedx;
		float speedy;
		float mass;
		float width;
		float height;
		float rotFreq;
		float angle;
		float stability;
		GLuint texture;
		GLuint ticks;
		bool gravity;
		
		planet();
		~planet();
		void move(vector <planet*> &planetlist, screen *scr);
		void draw();
		void calculateNewSize();
		
		void split(vector <planet*> &planetlist);
		void setTexture(GLuint gravtex, GLuint antigravtex);
};
#endif /* PLANET_H */

