Ejemplo n.º 1
0
SolarSystem::SolarSystem(vector<SpaceObject> spaceObjects) {

	this->spaceObjects.swap(spaceObjects);
	assignObjects(planets, "planet");
	assignMoons();

}
Ejemplo n.º 2
0
/**
 * Constructor that will add the space objects to the system
 * and will also assign them to their respective groups
 */
SolarSystem::SolarSystem(vector<SpaceObject> &spaceObjects) {

	this->spaceObjects = spaceObjects;
	assignObjects();
	assignMoons();

}