Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 public VehiclesController(IVehicleOperations bal)
 {
     _VehicleOperations = bal;
 }
Ejemplo n.º 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;
 }