Added a waiting room and now the checkouts also take the number of people waiting in count for when to open
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ namespace Caisses
|
||||
}
|
||||
public void Tick(GraphicalStore store)
|
||||
{
|
||||
if (!Open && store.AverageWaitingTime > GraphicalStore.CROSSOVER_TIME && store.GetEmptyCheckoutCount() == 0 || store.OpenCheckoutCount == 0)
|
||||
if (!Open && store.AverageWaitingTime > GraphicalStore.CROSSOVER_TIME && store.GetEmptyCheckoutCount() == 0 || store.OpenCheckoutCount == 0 || store.WaitingClients.Count > MAX_CAPACITY * 2 && store.GetEmptyCheckoutCount() == 0)
|
||||
{
|
||||
Open = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user