Beispiel #1
0
        private void DecideWhatInterfacetoSendTo(int userchoice)
        {
            if (userchoice == 1)
            {
                string playerchoice = UserInterface.DisplayPlayerLemonadeStands(player);
                LemonadeStandLogicSender(playerchoice);
            }//See stnds
            else if (userchoice == 2)
            {
                UserInterface.DisplayForecast(week); Console.Read();
            }                                                                                 //See Forecast
            else if (userchoice == 3)
            {
                Console.WriteLine($"you chose {userchoice}");
            }                                                                          //PNL
            else if (userchoice == 4)
            {
                UserInterface.DisplayBankBalance(player); Console.Read();
            }                                                                                      //Bank Balance
            else if (userchoice == 5)
            {
                bool hasenough = false;
                while (!hasenough)
                {
                    hasenough = CheckIfPlayerCanOpenNewLocation();
                    Console.Read();
                    break;
                }
            }//Open New Location
            else if (userchoice == 6)
            {
                int creationChoice = UserInterface.RecipeCreationMenu(player);

                Console.WriteLine("We need a stand from which to pull inventory from first");
                System.Threading.Thread.Sleep(1500);
                string userchoiceString = UserInterface.DisplayPlayerLemonadeStands(player);
                int    IndexOfStand     = UserInterface.GetAndSendLemonadeStand(userchoiceString, player);
                CreationLogic(creationChoice, IndexOfStand);
            }//Recipe Creation
            else if (userchoice == 7)
            {
                player.name = UserInterface.DisplayPlayerNamePrompt();
            }                                                                                   //Change Player Name
            else if (userchoice == 8)
            {
                Environment.Exit(0);
            }                                                 //End Game
            else if (userchoice == 50)
            {
                Console.WriteLine($"you chose {userchoice}");
            }                                                                           //Supplimental - M
            else if (userchoice == 51)
            {
                ShoppingLogic();
            }                                              //Supplimental - s
            else if (userchoice == 52)
            {
                DayLogic();
            }                                         //Supplimental - d
            else if (userchoice == 53)
            {
                Console.WriteLine($"you chose {userchoice}");
            }                                                                           //Supplimental - e
        }