Exemplo n.º 1
0
        public SpaceViewForm()
        {
            InitializeComponent();

            StartStopAnimation(true);

            starSystem = new StarSystem.Objects.StarSystem();
            starSystem.CreatePlanetSystem(rand.NextDouble() * 500 + 200, rand.NextDouble() * 100 + 20, rand.NextDouble() * 5).CreatePlanet();
            starSystem.CreatePlanetSystem(rand.NextDouble() * 500 + 200, rand.NextDouble() * 100 + 20, rand.NextDouble() * 5).CreatePlanet();
        }
Exemplo n.º 2
0
        public SpaceViewForm()
        {
            InitializeComponent();

            StartStopAnimation(true);

            starSystem = new StarSystem.Objects.StarSystem();
            starSystem.CreatePlanetSystem(rand.NextDouble() * 500 + 200, rand.NextDouble() * 100 + 20, rand.NextDouble() * 5).CreatePlanet();
            starSystem.CreatePlanetSystem(rand.NextDouble() * 500 + 200, rand.NextDouble() * 100 + 20, rand.NextDouble() * 5).CreatePlanet();
        }
Exemplo n.º 3
0
 private void newPlanetToolStripMenuItem_Click(object sender, EventArgs e)
 {
     starSystem.CreatePlanetSystem(rand.NextDouble() * 500 + 200, rand.NextDouble() * 100 + 20, rand.NextDouble() * 5).CreatePlanet();
 }