public Planet CreateEarth() { ProgressionPlanet earth = new ProgressionPlanet("Earth"); Map.Add <Planet>(earth); Satellite moon = new Satellite("Moon"); earth.Add(moon); earth.Add(new Habitat("Space Station V")); earth.Add(new Habitat("Moon Base 1")); return(earth); }
public Planet CreateEarth() { Earth = new ProgressionPlanet("Earth"); Map.Add <Planet>(Earth); Satellite moon = new Satellite("Moon"); Earth.Add(moon); return(Earth); }
public static ProgressionPlanet ConvertPlanet(ProgressionMap map, Planet oldPlanet) { ProgressionPlanet newPlanet = ConvertPlanetOnly(map, oldPlanet); IDictionary <string, Satellite> oldSatellites = oldPlanet.GetSatellites(); if (oldSatellites != null) { foreach (Satellite oldSatellite in oldSatellites.Values) { Satellite newSatellite = ConvertSatellite(map, oldSatellite); newPlanet.Add(newSatellite); } } return(newPlanet); }