public Moon() { Name = UniverseTools.GetName(); Random rand = new Random(); int num = rand.Next(0, 12); CheeseLevel = num; }
public Galaxy() { Name = UniverseTools.GetName(); Random rand = new Random(); int num = rand.Next(2, 5); Stars = new Star[num]; for (int i = 0; i < Stars.Length; i++) { Stars[i] = new Star(); } }
//constructor method public Star() { Name = UniverseTools.GetName(); GenerateColor(); Random rand = new Random(); int num = rand.Next(2, 5); Planets = new Planet[num]; for (int i = 0; i < Planets.Length; i++) { Planets[i] = new Planet(); } }
public Planet() { Name = UniverseTools.GetName(); Random rand = new Random(); int num = rand.Next(100000, 100000000); Population = num; num = rand.Next(0, 9); Moons = new Moon[num]; for (int i = 0; i < Moons.Length; i++) { Moons[i] = new Moon(); } }