Exemplo n.º 1
0
 public Car(int initialPosition, int initialVelocity, ICarFinderManager carFinderManager)
 {
     InitialPosition   = initialPosition;
     InitialVelocity   = initialVelocity;
     _gameTimer        = new SystemTimerForConsole(TickEvent);
     CarFoundResults   = new ObservableCollection <CarFoundResult>();
     _carFinderManager = carFinderManager;
 }
Exemplo n.º 2
0
 public Car(ICarFinderManager carFinderManager)
 {
     _gameTimer        = new DispatchTimerForWPF(TickEvent);
     CarFoundResults   = new ObservableCollection <CarFoundResult>();
     _carFinderManager = carFinderManager;
 }