Exemple #1
0
 /// <summary>
 /// Takes one action (move the car one spot or pick up the passenger).
 /// </summary>
 /// <param name="car">The car to move</param>
 /// <param name="passenger">The passenger to pick up</param>
 private static void Tick(Car car, Passenger passenger)
 {
 }
 public void GetInCar(Car car)
 {
     Car = car;
     car.PickupPassenger(this);
     Console.WriteLine("Passenger got in car.");
 }