Esempio n. 1
0
 /// <summary>
 /// Méthode permettant de servir les plats
 /// </summary>
 public void ServeDish(Table table, Waiter waiter, GroupCommand groupCommand)
 {
     model.counter.waitingGroupCommand.Remove(groupCommand);
     MoveToTable(table, waiter);
     assignItemToTable(waiter, table, "pizza");
     groupClientController.ThreadEatDish(table.groupClient);
     foreach (Command command in groupCommand.commands)
     {
         table.groupClient.commands.Add(command);
     }
     MoveToCounter(table, waiter);
     waiter.isAvailable = true;
 }
Esempio n. 2
0
        /// <summary>
        /// Méthode pour récuperer la commande des clients
        /// </summary>
        public void GetCommande(Table table, SquareSupervisor squareSupervisor)
        {
            GroupCommand groupCommandTemp = new GroupCommand(table);

            foreach (Client client in table.groupClient.clients)
            {
                client.appetizer.table = table;
                model.kitchen.cookingRoom.masterChef.commandsToDo.Add(client.appetizer);
            }
            model.counter.waitingGroupCommand.Add(groupCommandTemp);
            MoveToWelcome(table, squareSupervisor);
            squareSupervisor.isAvailable = true;
        }