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); }
public PlanetSystem(StarSystem star, double orbitRadius, double orbitPosition) { this.starSystem = star; this.orbitRadius = orbitRadius; this.orbitPosition = orbitPosition; }
public Star(StarSystem starSystem) { this.starSystem = starSystem; }
private void clearToolStripMenuItem_Click(object sender, EventArgs e) { starSystem = new StarSystem(); }