Added some comments to comply a little bit more with the cfpt rules

This commit is contained in:
2023-01-25 22:32:43 +01:00
parent 7ac7570470
commit 60b23025f5
5 changed files with 53 additions and 8 deletions
+11 -1
View File
@@ -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;