Ejemplo 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);
        }
Ejemplo n.º 2
0
 public PlanetSystem(StarSystem star, double orbitRadius, double orbitPosition)
 {
     this.starSystem    = star;
     this.orbitRadius   = orbitRadius;
     this.orbitPosition = orbitPosition;
 }
Ejemplo n.º 3
0
 public Star(StarSystem starSystem)
 {
     this.starSystem = starSystem;
 }
Ejemplo n.º 4
0
 private void clearToolStripMenuItem_Click(object sender, EventArgs e)
 {
     starSystem = new StarSystem();
 }
Ejemplo n.º 5
0
 private void clearToolStripMenuItem_Click(object sender, EventArgs e)
 {
     starSystem = new StarSystem();
 }
Ejemplo n.º 6
0
 public PlanetSystem(StarSystem star, double orbitRadius, double orbitPosition)
 {
     this.starSystem = star;
     this.orbitRadius = orbitRadius;
     this.orbitPosition = orbitPosition;
 }
Ejemplo n.º 7
0
 public Star(StarSystem starSystem)
 {
     this.starSystem = starSystem;
 }