Exemple #1
0
        /// <summary>
        /// Clean the client's meal
        /// </summary>
        /// <param name="clients"></param>
        public void ClearMeal(ClientGroup clients)
        {
            this.IsAvailable = false;
            Console.WriteLine("Clearing meal of group {0}", clients.Id);

            foreach (Client.Client clt in clients.ClientList)
            {
                clt.Served = false;
            }

            if (clients.MealProgression == RecipeType.MAIN)
            {
                clients.OrderDessert();
            }

            this.IsAvailable = true;
        }