Esempio n. 1
0
 public Street(string type, QueueOfCars queueOfCars, Object monitor)
 {
     _monitor        = monitor;
     _type           = type;
     _queueOfCars    = queueOfCars;
     _amountOfCar    = 0;
     _amountOfSTrack = 0;
     _amountOfTruck  = 0;
 }
 public Vehicle(string type, QueueOfCars queueOfCars)
 {
     _type = type;
     if (type == "jednoslad")
     {
         _speed = 1;
     }
     if (type == "ciezarowy")
     {
         _speed = 3;
     }
     if (type == "osobowy")
     {
         _speed = 2;
     }
     _queueOfCars = queueOfCars;
 }