Esempio n. 1
0
        public SpaceViewForm()
        {
            InitializeComponent();

            StartStopAnimation(true);

            starSystem = new StarSystem();
            starSystem.CreatePlanet(rand.NextDouble() * 100 + 20, rand.NextDouble() * 5);
            starSystem.CreatePlanet(rand.NextDouble() * 100 + 20, rand.NextDouble() * 5);
        }
Esempio n. 2
0
 public PlanetSystem(StarSystem star, double orbitRadius, double orbitPosition)
 {
     this.starSystem    = star;
     this.orbitRadius   = orbitRadius;
     this.orbitPosition = orbitPosition;
 }
Esempio n. 3
0
 public Star(StarSystem starSystem)
 {
     this.starSystem = starSystem;
 }
Esempio n. 4
0
 private void clearToolStripMenuItem_Click(object sender, EventArgs e)
 {
     starSystem = new StarSystem();
 }
 private void clearToolStripMenuItem_Click(object sender, EventArgs e)
 {
     starSystem = new StarSystem();
 }
Esempio n. 6
0
 public PlanetSystem(StarSystem star, double orbitRadius, double orbitPosition)
 {
     this.starSystem = star;
     this.orbitRadius = orbitRadius;
     this.orbitPosition = orbitPosition;
 }
Esempio n. 7
0
 public Star(StarSystem starSystem)
 {
     this.starSystem = starSystem;
 }