#include "CarnegieMellonGraphics.h" #include #include #include #ifndef PARTICLE_H #define PARTICLE_H //struct struct RBG { int red; int blue; int green; }; enum Type { PARTICLE, OBJECT, THING, UNDEF }; //class class Thing { public: Thing(float X, float Y, Type typee); Thing(float X, float Y, int Mass, Type typee); // ~Thing(); void Move(float X, float Y); void MakeRedo(bool b); void Kill(); void Alive(); void ChangeYi(float newi); void ChangeXi(float newi); void MakeYi(float newi); void MakeXi(float newi); void ChangeAll(float newXi, float newYi, float newY, float newX, int newMass); float GetX(); float GetY(); float GetXi(); float GetYi(); int GetMass(); bool Dead(); bool GetRedo(); Type GetType(); private: bool mDead, Redo; Type type; float x, y, xi, yi, xr, yr; int mass; }; //class class Particle : public Thing { public: Particle(); Particle( float x, float y ); Particle( float x, float y, RBG color ); Particle( float x, float y, RBG color, int mass ); ~Particle(); RBG GetColor(); int GetAge(); private: int age; // die at an age also, change colors as you age RBG color; //int mass; // for gravity, will prolly not be added. (nm will add...) }; //class class Object : public Thing { public: Object(); Object( float X, float Y ); Object( float X, float Y, Image images ); Object( float X, float Y, Image images, int Mass ); ~Object(); Image GetImage(); //int GetAge(); private: Image image; // Style color; //int mass; // for gravity, will prolly not be added. (nm will add...) }; #endif