class coord
{
private:
double x; //X coordinate location
double y; //Y coordinate location
double z; //Z coordinate location
public:
coord();
coord(double x_in, double y_in, double z_in);
~coord();
void setCoord(double x_in, double y_in, double z_in);
double getX();
double getY();
double getZ();
};
/*
* This class covers any generic body, be it a star, planet, asteroid, ship
* or whaterver.
*/
class body : public coord
{
private:
string name; //The name of the body
double mass; //The bodys mass in units of kg
bool fixed; //Whether or not the body is orbitting.
class body *target; //What the body is orbitting.
public:
body();
body(string name_in, double mass_in);
~body();
void setName(string name_in);
void setMass(double mass_in);
void setTarget(void *target_in);
void setFixed(bool fixed_in);
string getName();
double getMass();
};
class star : public body
{
};