Esempio n. 1
0
 public void Run(Bar bar)
 {
     Task.Run(() => AgentCycle(bar));
 }
Esempio n. 2
0
 public RunState CheckState(Bar bar)
 {
     if (bar.patronsQueue.IsEmpty && bar.glassesOnTables.Count is 0 && bar.currentBarState is BarState.Closed)
     {
         return(RunState.LeavingThePub);
     }
Esempio n. 3
0
 public abstract void AgentCycle(Bar bar);
Esempio n. 4
0
 public Waitress(Bar bar)
 {
     Bar           = bar;
     BarController = bar.BarController;
     tray          = new ConcurrentBag <Glass>();
 }