Exemple #1
0
        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());
        }
Exemple #3
0
 public Planet(PlanetSystem planetSystem)
 {
     this.planetSystem = planetSystem;
 }
Exemple #4
0
 public Planet(PlanetSystem planetSystem)
 {
     this.planetSystem = planetSystem;
 }