Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public Planet CreateEarth()
        {
            Earth = new ProgressionPlanet("Earth");

            Map.Add <Planet>(Earth);

            Satellite moon = new Satellite("Moon");

            Earth.Add(moon);

            return(Earth);
        }
Ejemplo n.º 3
0
        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);
        }