Added some comments to comply a little bit more with the cfpt rules
This commit is contained in:
+11
-1
@@ -1,4 +1,13 @@
|
||||
using System;
|
||||
/*
|
||||
* Rohmer Maxime
|
||||
* STD Project
|
||||
* 25/01/2023
|
||||
* V1.0
|
||||
* Checkout.cs
|
||||
* Logic base for the checkout object
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -23,6 +32,7 @@ namespace Caisses
|
||||
}
|
||||
public void Tick(GraphicalStore store)
|
||||
{
|
||||
//If enough client are waiting or if they wait in average more than the crossover time, we need to open a new checkout.
|
||||
if (!Open && store.AverageWaitingTime > store.CrossoverTime && store.GetEmptyCheckoutCount() == 0 || store.OpenCheckoutCount == 0 || store.WaitingClients.Count > MAX_CAPACITY * 2 && store.GetEmptyCheckoutCount() == 0)
|
||||
{
|
||||
Open = true;
|
||||
|
||||
Reference in New Issue
Block a user