Exemplo n.º 1
0
 public bool addParticle(Particle p)
 {
     if (occupying.Count == 0)
     {
         occupying.Add(p);
         return true;
     }
     if (occupying.Count < maxThroughput && p.speed >= occupying[occupying.Count - 1].speed)
     {
         occupying.Add(p);
         return true;
     }
     return false;
 }
Exemplo n.º 2
0
 public void removeParticle(Particle p)
 {
     occupying.Remove(p);
 }