static void Main(string[] args) { Planet planet = new Planet(); var planetList = planet.PlanetSystem(); SpaceShip spaceShip = new SpaceShip(); SpaceShip mySpace = new SpaceShip(spaceShip.Engine1, spaceShip.Fuel1, spaceShip.Cargo1); RunProgram runProgram = new RunProgram(); runProgram.Run(); Console.ReadLine(); }
private static void TravelMenu(Characters self) { Formulas form = new Formulas(); Planet planets = new Planet(); var galaxy = planets.PlanetSystem(); Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("\t\t\nWhere would you like to travel?"); Thread.Sleep(2000); Console.ForegroundColor = ConsoleColor.Blue; Console.WriteLine("\t\t\n[Janet] OOOOOO I have always wanted to go to...."); Thread.Sleep(2000); Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("\t\t\nJanet!!"); Thread.Sleep(2000); Console.ForegroundColor = ConsoleColor.Blue; Console.WriteLine("\t\t\n[Janet] Sorry"); Thread.Sleep(5000); Console.Clear(); Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("\t\t\nWhere would you like to travel?\n"); for (int i = 0; i < galaxy.Count; i++) { Console.ForegroundColor = ConsoleColor.White; Console.WriteLine($"{i}. {galaxy[i].PlanetName}"); } bool success = false; while (!success) { Console.WriteLine(); success = int.TryParse(Console.ReadLine(), out int input); if (success == true && input >= 0 && input < galaxy.Count) { Menus menu = new Menus(); Planet targetPlanet = galaxy[input]; success = true; menu.TravelPlanetPrompt(self, targetPlanet); } else { Console.Clear(); TravelMenu(self); } } }
public void Run() { Dialogue dialogue = new Dialogue(); Planet planet = new Planet(); var planetList = planet.PlanetSystem(); MarketResources MarsBars = new MarketResources(planetList[0], "Mars Bars", 250); MarketResources SunScreen = new MarketResources(planetList[0], "Sun Screen", 1); /// TODO: 42 sold on earth will give $500,000 MarketResources MoonPies = new MarketResources(planetList[1], "Moon Pies", 200); MarketResources Honey = new MarketResources(planetList[2], "Honey [sourced by local Proxima Bees]", 500); MarketResources Kryptonite = new MarketResources(planetList[3], "Kryptonite", 15000); MarketResources Widgets = new MarketResources(planetList[4], "Widget", 800); MarketResources BugSpray = new MarketResources(planetList[5], "Bug Spray by K", 486); MarketResources ZombieRepellent = new MarketResources(planetList[6], "Zombie Repellent", 7200); (MarketResources resource, int quantity)[] inventory =
public List <MarketResources> Resources() { Planet planet = new Planet(); var planetList = planet.PlanetSystem(); MarketResources MarsBars = new MarketResources(planetList[0], "Mars Bars", 250); MarketResources SunScreen = new MarketResources(planetList[0], "Sun Screen", 1); /// TODO: 42 sold on earth will give $500,000 MarketResources MoonPies = new MarketResources(planetList[1], "Moon Pies", 200); MarketResources Honey = new MarketResources(planetList[2], "Honey [sourced by local Proxima Bees]", 500); MarketResources Kryptonite = new MarketResources(planetList[3], "Kryptonite", 15000); MarketResources Widgets = new MarketResources(planetList[4], "Widget", 800); MarketResources BugSpray = new MarketResources(planetList[5], "Bug Spray by K", 486); MarketResources ZombieRepellent = new MarketResources(planetList[6], "Zombie Repellent", 7200); List <MarketResources> Inventory = new List <MarketResources>() { MarsBars, SunScreen, MoonPies, Honey, Kryptonite, Widgets, BugSpray, ZombieRepellent }; return(Inventory); }