Example #1
0
        /// <summary>
        /// Produce Pomfritter Menu
        /// </summary>
        private void ProduceFrenchFries()
        {
            // Check if any frenchfries is available.
            if (getFryer.FrenchFriesQueue.Count == 0)
            {
                // Fry new French Fries Batch.

                Debug.WriteLine(INFO_MESSAGE + "Making french fries batch.");
                getFryer.MakeFrenchFries();
            }
            if (remoulade.ServingsLeft == 0)
            {
                Debug.WriteLine(WARNING_MESSAGE + "Refilling Remoulade.");
                remoulade.Refill();
            }

            getFryer.TakeFrenchFries();

            if (remoulade is Condiment)
            {
                Debug.WriteLine($" ##################### Remoulade: {remoulade.ServingsLeft}");
                Condiment condiment = (Condiment)remoulade;
                condiment.ServingsLeftCounter();
            }

            Debug.WriteLine(INFO_MESSAGE + (int)OrderList.FrenchFries);
            Thread.Sleep(threadSleep);
        }
Example #2
0
        /// <summary>
        /// Produce Almindelig Hotdog Menu
        /// </summary>
        private void ProduceOrdinaryHotdog()
        {
            // Check on if any required ingredient are available.
            if (getBoiler.CookedSausageQueue.Count == 0)
            {
                // Cook new sausage batch if empty.
                Debug.WriteLine(INFO_MESSAGE + "Cooking sausage batch.");
                getBoiler.PrepareCookedSausageBatch();
            }
            if (getToaster.BurgerBunQueue.Count == 0)
            {
                // Cook sausage bread, if none ready.
                Debug.WriteLine(INFO_MESSAGE + "Roasting sausage bread.");
                getToaster.PrepareSausageBread();
            }
            if (ketchup.ServingsLeft == 0)
            {
                Debug.WriteLine(WARNING_MESSAGE + "Refilling Ketchup.");
                ketchup.Refill();
            }
            if (mustard.ServingsLeft == 0)
            {
                Debug.WriteLine(WARNING_MESSAGE + "Refilling Mustard.");
                mustard.Refill();
            }
            if (remoulade.ServingsLeft == 0)
            {
                Debug.WriteLine(WARNING_MESSAGE + "Refilling Remoulade.");
                remoulade.Refill();
            }

            // Get required ingredient for menu.
            getBoiler.TakeCookedSausage();
            getToaster.TakeSausageBread();

            // Apply Condiment for order.
            if (ketchup is Condiment && ketchup.ServingsLeft <= 30)
            {
                Debug.WriteLine($" ##################### Ketchup: {ketchup.ServingsLeft}");
                Condiment condiment = (Condiment)ketchup;
                condiment.ServingsLeftCounter();
            }
            if (mustard is Condiment && mustard.ServingsLeft <= 30)
            {
                Debug.WriteLine($" ##################### Mustard: {mustard.ServingsLeft}");
                Condiment condiment = (Condiment)mustard;
                condiment.ServingsLeftCounter();
            }
            if (remoulade is Condiment && remoulade.ServingsLeft <= 30)
            {
                Debug.WriteLine($" ##################### Remoulade: {remoulade.ServingsLeft}");
                Condiment condiment = (Condiment)remoulade;
                condiment.ServingsLeftCounter();
            }

            Debug.WriteLine(INFO_MESSAGE + (int)OrderList.OrdinaryHotdog);
            Thread.Sleep(threadSleep);
        }
Example #3
0
        /// <summary>
        /// Produce Ristet Hotdog Menu
        /// </summary>
        private void ProduceRoastedHotdog()
        {
            if (getStove.RoastedSausageQueue.Count == 0)
            {
                Debug.WriteLine(INFO_MESSAGE + "Roasting sausage batch.");
                getStove.PrepareRoastedSausage();
            }
            if (getToaster.SausageBreadQueue.Count == 0)
            {
                Debug.WriteLine(INFO_MESSAGE + "Roasting sausage bread.");
                getToaster.PrepareSausageBread();
            }
            if (ketchup.ServingsLeft == 0)
            {
                Debug.WriteLine(WARNING_MESSAGE + "Refilling Ketchup.");
                ketchup.Refill();
            }
            if (mustard.ServingsLeft == 0)
            {
                Debug.WriteLine(WARNING_MESSAGE + "Refilling Mustard.");
                mustard.Refill();
            }
            if (remoulade.ServingsLeft == 0)
            {
                Debug.WriteLine(WARNING_MESSAGE + "Refilling Remoulade.");
                remoulade.Refill();
            }

            getStove.TakeRoastedSausage();
            getToaster.TakeSausageBread();

            if (ketchup is Condiment && ketchup.ServingsLeft <= 30)
            {
                Debug.WriteLine($" ##################### Ketchup: {ketchup.ServingsLeft}");
                Condiment condiment = (Condiment)ketchup;
                condiment.ServingsLeftCounter();
            }
            if (mustard is Condiment && mustard.ServingsLeft <= 30)
            {
                Debug.WriteLine($" ##################### Mustard: {mustard.ServingsLeft}");
                Condiment condiment = (Condiment)mustard;
                condiment.ServingsLeftCounter();
            }
            if (remoulade is Condiment && remoulade.ServingsLeft <= 30)
            {
                Debug.WriteLine($" ##################### Remoulade: {remoulade.ServingsLeft}");
                Condiment condiment = (Condiment)remoulade;
                condiment.ServingsLeftCounter();
            }

            Debug.WriteLine(INFO_MESSAGE + (int)OrderList.RoastedHotdog);
            Thread.Sleep(threadSleep);
        }
Example #4
0
        /// <summary>
        /// Produce Bøfsandwich Menu.
        /// </summary>
        public void ProduceSloppyJoe()
        {
            if (getStove.BeefQueue.Count == 0)
            {
                Debug.WriteLine(INFO_MESSAGE + "Roasting fresh beef.");
                getStove.PrepareBeef();
            }
            if (getToaster.BurgerBunQueue.Count == 0)
            {
                Debug.WriteLine(INFO_MESSAGE + "Roasting burger bun.");
                getToaster.PrepareBurgerBun();
            }
            if (ketchup.ServingsLeft == 0)
            {
                Debug.WriteLine(WARNING_MESSAGE + "Refilling Ketchup.");
                ketchup.Refill();
            }
            if (mustard.ServingsLeft == 0)
            {
                Debug.WriteLine(WARNING_MESSAGE + "Refilling Mustard.");
                mustard.Refill();
            }
            if (remoulade.ServingsLeft == 0)
            {
                Debug.WriteLine(WARNING_MESSAGE + "Refilling Remoulade.");
                remoulade.Refill();
            }

            getStove.TakeBeef();
            getToaster.TakeBurgerBun();

            if (ketchup is Condiment && ketchup.ServingsLeft <= 30)
            {
                Debug.WriteLine($" ##################### Ketchup: {ketchup.ServingsLeft}");
                Condiment condiment = (Condiment)ketchup;
                condiment.ServingsLeftCounter();
            }
            if (mustard is Condiment && mustard.ServingsLeft <= 30)
            {
                Debug.WriteLine($" ##################### Mustard: {mustard.ServingsLeft}");
                Condiment condiment = (Condiment)mustard;
                condiment.ServingsLeftCounter();
            }
            if (remoulade is Condiment && remoulade.ServingsLeft <= 30)
            {
                Debug.WriteLine($" ##################### Remoulade: {remoulade.ServingsLeft}");
                Condiment condiment = (Condiment)remoulade;
                condiment.ServingsLeftCounter();
            }

            Debug.WriteLine(INFO_MESSAGE + (int)OrderList.SloppyJoe);
            Thread.Sleep(threadSleep);
        }