Exemplo n.º 1
0
        public void CreateHotCustomer()
        {
            int customerBase = 5;

            if (weather.danger.currentThreat >= 8 && weather.danger.currentThreat <= 17)
            {
                for (int i = 0; i < weather.danger.currentThreat * customerBase; i++)
                {
                    peasant = new Peasant(player.store);
                    peasant.PurchaseLemonade();
                    warrior = new Warrior(player.store);
                    warrior.PurchaseLemonade();
                    mage = new Mage(player.store);
                    mage.PurchaseLemonade();
                }
            }
            else
            {
                CheckFailStatus();
            }
        }
Exemplo n.º 2
0
        public void CreateMediumCustomer()
        {
            int customerBase = 3;

            if (weather.danger.currentThreat >= 10)
            {
                for (int i = 0; i < weather.danger.currentThreat * customerBase; i++)
                {
                    peasant = new Peasant(player.store);
                    peasant.PurchaseLemonade();
                    warrior = new Warrior(player.store);
                    warrior.PurchaseLemonade();
                    mage = new Mage(player.store);
                    mage.PurchaseLemonade();
                }
            }
            else
            {
                CreateHotCustomer();
            }
        }