public Planet CreatePlanet(double orbitRadius, double orbitPosition) { PlanetSystem ps = new PlanetSystem(this, orbitRadius, orbitPosition); planetSystems.Add(ps); return ps.CreatePlanet(); }
public Planet CreatePlanet(double orbitRadius, double orbitPosition) { PlanetSystem ps = new PlanetSystem(this, orbitRadius, orbitPosition); planetSystems.Add(ps); return(ps.CreatePlanet()); }
public Planet(PlanetSystem planetSystem) { this.planetSystem = planetSystem; }