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