Exemplo n.º 1
0
 public void RemovePassenger(List <Passenger> a)
 {
     for (int i = 0; i < a.Count; i++)
     {
         if (a[i].Destination == Currentfloor)
         {
             CurrentPassenger.Remove(a[i]);
             i--;
         }
     }
 }
Exemplo n.º 2
0
 public void AddPassenger(List <Passenger> a)
 {
     for (int i = 0; i < a.Count; i++)
     {
         if (CurrentPassenger.Count < Capacity)
         {
             {
                 CurrentPassenger.Add(a[i]);
                 Floorlevels[Currentfloor].RemovePassengerQueue(a[i]);
                 i -= 1;
             }
         }
     }
 }