#include "CarnegieMellonGraphics.h" #include #include #include #ifndef PARTICLE_H #define PARTICLE_H #define MAX_PARTICLES 100 //struct struct RBG { int red; int blue; int green; }; //class class Thing { Thing(); ~Thing(); void Move(int X, int Y); void Kill(); int GetX(); int GetY(); int GetMass(); bool Dead(); protected: bool Dead; int x, y, xi, yi; int mass; }; //class class Particle : public Thing { public: Particle(); Particle( int x, int y, ); Particle( int x, int y, RBG color ); Particle( int x, int y, RBG color, int mass ); ~Particle(); RBG GetRBG(); int GetAge(); protected: int age; // die at an age. random looks better. can't all die at same spot RBG color; //int mass; // for gravity, will prolly not be added. (nm will add...) }; //class class Object : public Thing { public: Object(); Object( int x, int y, ); Object( int x, int y, Style color ); Particle( int x, int y, Style color, int mass ); ~Object(); Image GetImage(); //int GetAge(); protected: Image image; // Style color; //int mass; // for gravity, will prolly not be added. (nm will add...) }; #endif