예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MarsRoverEngine"/> class.
 /// </summary>
 /// <param name="vehicle">The vehicle.</param>
 /// <param name="commands">The commands.</param>
 public MarsRoverEngine(IVehicleOperations vehicle, IEnumerable <VehicleCommand> commands)
 {
     this.vehicle  = vehicle;
     this.commands = commands;
 }
예제 #2
0
 public VehiclesController(IVehicleOperations bal)
 {
     _VehicleOperations = bal;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VehicleStatus"/> struct.
 /// </summary>
 /// <param name="vehicle">The implicit vehicle.</param>
 public VehicleStatus(IVehicleOperations vehicle)
 {
     this.InTerrainLimits = vehicle.InValidPosition();
     this.Orientation     = vehicle.CurrentOrientation;
     this.Position        = vehicle.CurrentPosition;
 }