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