Beispiel #1
0
        public void StartGame()
        {
            bool playAgain;

            do
            {
                UserInterface.Welcome();
                UserInterface.Discription();

                SetGameLength();
                CreateAllDays();
                CreatePlayer();
                currentDay = 1;



                for (int i = 0; i < days.Count; i++)
                {
                    Console.Clear();



                    bool start = false;
                    do
                    {
                        GoToMenu();
                        if (quitGame == false)
                        {
                            start = UserInterface.GoodToStart(player);
                        }
                    }while (start == false && quitGame == false);

                    if (quitGame == false)
                    {
                        RunDay();
                        player.inventory.iceCubes.Clear();
                        UserInterface.DisplayPostInventory(player, days[currentDay - 1], days);
                        currentDay++;
                    }
                    else
                    {
                        break;
                    }
                }
                EndGame();
                playAgain = UserInterface.PlayAgainMenu();
                quitGame  = false;
            } while (playAgain == true);

            Environment.Exit(0);
        }