Exemplo n.º 1
0
        public void RunGame()
        {
            SetDaysToPlay();
            //GenerateListOfDays();

            while (dayCount <= daysToPlay)
            {
                UI.DisplayGameMenu();
                int userInput = Int32.Parse(Console.ReadLine());

                switch (userInput)
                {
                case 1:
                    //UI.DisplayWeeklyForecast(listOfDays);
                    //UI.DisplayWeather(day.weather.actualCondition, day.weather.forecastTemperature);
                    // display weekly forecast
                    break;

                case 2:
                    UI.DisplayInventoryContents(player.inventory);
                    break;

                case 3:
                    UI.DisplayTotalMoney(player.wallet);
                    break;

                case 4:
                    store.isShopping = true;
                    store.VisitStore(player);
                    break;

                case 5:
                    day.isRunning = true;
                    day.RunDay(player, store, day);
                    //dayIsRunning = true;
                    //GenerateBuyingCustomers();
                    // foreach(Day day in listOfDay){day.runDay}
                    // day.RunDay(day[i]);
                    // dayCount ++
                    break;

                case 6:
                    dayCount = daysToPlay + 1;
                    break;

                default:
                    RunGame();
                    break;
                }
            }
            // End of game
        }