private void PurchasingProducts(Player player) { Console.WriteLine("\n(please type in the name of the product from the list, if nothing or done type Exit)"); UserInterface.DisplayStorePriceList(this); string input = Console.ReadLine().ToUpper(); switch (input) { case "LEMONS": SellLemons(player); Console.WriteLine("\n"); Console.WriteLine("Here is your updated inventory and wallet " + player.name + ": "); UserInterface.DisplayCurrentInventoryAndMoney(player); Console.Clear(); PurchasingProducts(player); break; case "SUGAR CUBES": SellSugarCubes(player); Console.WriteLine("\n"); Console.WriteLine("Here is your updated inventory and wallet " + player.name + ": "); UserInterface.DisplayCurrentInventoryAndMoney(player); Console.Clear(); PurchasingProducts(player); break; case "ICE CUBES": SellIceCubes(player); Console.WriteLine("\n"); Console.WriteLine("Here is your updated inventory and wallet " + player.name + ": "); UserInterface.DisplayCurrentInventoryAndMoney(player); Console.Clear(); PurchasingProducts(player); break; case "CUPS": SellCups(player); Console.WriteLine("\n"); Console.WriteLine("Here is your updated inventory and wallet " + player.name + ": "); UserInterface.DisplayCurrentInventoryAndMoney(player); Console.Clear(); PurchasingProducts(player); break; case "EXIT": Console.WriteLine("\nThankyou for coming see you again soon!"); Console.ReadLine(); break; default: Console.Clear(); Console.WriteLine("That was invalid user input please try again..."); PurchasingProducts(player); break; } }
public static void GameMenuText(Player player, Day days)//Text for the game menu method in simulate program { Console.Clear(); Console.WriteLine("\nHello " + player.name + " and welcome to your game menu. Use the number\n" + "commands shown below or you can type the command to do any of the activities\n"); UserInterface.DisplayCurrentDay(days); UserInterface.DisplayCurrentInventoryAndMoney(player); Console.WriteLine("(1) Show Rules\n" + "(2) Create Recipe\n" + "(3) Go to Store\n" + "(4) Start your Day\n" + "(5) Skip Today\n" + "(6) Exit Game\n"); }
private void RecipeCreation() { pitcher = new Pitcher(player); UserInterface.DisplayCurrentInventoryAndMoney(player); SetLemonadePrice(); }