Beispiel #1
0
        private void Menu()
        {
            Console.WriteLine("This is the Main Menu. Use the numbers to navagate from below:");
            Console.WriteLine("'1' - Check the Weather Forecast for the week");
            Console.WriteLine("'2' - Buy Supplies from the store");
            Console.WriteLine("'3' - Change your price and recipe for your lemonade");
            Console.WriteLine("'4' - Play Week");
            Console.WriteLine("You have $" + Math.Round(player.CurrentMoney.Money, 2));
            string MenuChoice = Console.ReadLine();

            if (MenuChoice == "1")
            {
                string weatherInfo = weather.GetWeather();
                Console.WriteLine("Monday - " + weatherInfo);
                string weatherInfoDayTwo = weather.GetWeather();
                Console.WriteLine("Tuesday - " + weatherInfoDayTwo);
                string weatherInfoDayThree = weather.GetWeather();
                Console.WriteLine("Wednesday - " + weatherInfoDayThree);
                string weatherInfoDayFour = weather.GetWeather();
                Console.WriteLine("Thursday - " + weatherInfoDayFour);
                string weatherInfoDayFive = weather.GetWeather();
                Console.WriteLine("Friday - " + weatherInfoDayFive);
                string weatherInfoDaySix = weather.GetWeather();
                Console.WriteLine("Saturday - " + weatherInfoDaySix);
                string weatherInfoDaySeven = weather.GetWeather();
                Console.WriteLine("Sunday - " + weatherInfoDaySeven);
                Menu();
            }
            else if (MenuChoice == "2")
            {
                store.BuyMenu();
                store.BuyOptionsResult(player);
                Menu();
            }
            else if (MenuChoice == "3")
            {
                player.recipe.SetRecipeOptions(player);
                player.recipe.RecipePath(player, weather, store, day.recipe);
                Menu();
            }
            else if (MenuChoice == "4")
            {
                do
                {
                    for (int i = 0; i < 7; i++)
                    {
                        day.FillCustomers();
                        day.WeatherAffect();
                        day.PriceEffect();
                        day.CustomerBuy();
                        day.RunningProfit();
                    }
                    Menu();
                }while (player.recipe.FinalCups > 0);
            }

            else
            {
                Console.WriteLine("Please enter a valid option");
                Menu();
            }
        }