コード例 #1
0
        public Game()
        {
            recipe = new Recipe();
            Random num = new Random();

            DisplayRules();

            Console.Clear();

            //lemonadeStandOne = new LemonadeStand();

            Days = new List <Day>();

            Console.WriteLine("What is your name?");

            player = new Player(Console.ReadLine());

            store = new StoreClass();

            rules = new Rules();

            currentDay = 1;

            Days[0].RunDay(player.Inventory, recipe, store, num);

            //RunGameDays(lemonadeStandOne.inventory, lemonadeStandOne, store, Day, num);

            //DisplayEndGame(lemonadeStandOne);
        }
コード例 #2
0
 public void RunDay(Inventory inventory, Recipe recipe, StoreClass store)
 {
     store.DisplayStore();
     recipe.SetRecipe();
     GetPossibleCustomers();
     cupCounter = inventory.cups;
     RunThroughCustomers(inventory, recipe);
     UpdateEndOfDayVariables(recipe);
     UpdatePopularity(recipe);
     UpdateCustomerSatisfaction(recipe);
     DisplayDayResults(weather.GetActualTemperature, weather.weatherCondition, recipe);
 }