Beispiel #1
0
 public void RemoveBus(Bus b)
 {
     Buses.Remove(b);
     foreach (Module m in b.ConnectedModules)
     {
         m.BusConnections.Remove(b);
     }
 }
Beispiel #2
0
        public void TimeTick()
        {
            List <Bus> buses = new List <Bus>(Buses);

            foreach (var bus in buses)
            {
                bus.TimeTick();
                if (bus.Disappeared)
                {
                    Buses.Remove(bus);
                }
            }
            foreach (var busstop in BusStops)
            {
                busstop.TimeTick();
            }
        }