示例#1
0
 public MarsRover(Int32 xCoordinate, Int32 yCoordinate, Char initialDirection)
 {
     this.XCoordinate = xCoordinate;
     this.YCoordinate = yCoordinate;
     this.roverState  = setInitialState(initialDirection);
     roverController  = new MarsRoverController(new Grid());
 }
示例#2
0
 public MarsRover(Int32 xCoordinate, Int32 yCoordinate, Char initialDirection)
 {
     this.XCoordinate = xCoordinate;
     this.YCoordinate = yCoordinate;
     this.roverState = setInitialState(initialDirection);
     roverController = new MarsRoverController(new Grid());
 }
示例#3
0
 public MarsRover(Grid map, Int32 xCoordinate, Int32 yCoordinate, Char initialDirection)
 {
     this.XCoordinate = xCoordinate;
     this.YCoordinate = yCoordinate;
     this.roverState  = setInitialState(initialDirection);
     map.PlaceRover(this, xCoordinate, yCoordinate, initialDirection);
     roverController = new MarsRoverController(map);
 }
示例#4
0
 public MarsRover(Grid map, Int32 xCoordinate, Int32 yCoordinate, Char initialDirection)
 {
     this.XCoordinate = xCoordinate;
     this.YCoordinate = yCoordinate;
     this.roverState = setInitialState(initialDirection);
     map.PlaceRover(this, xCoordinate, yCoordinate, initialDirection);
     roverController = new MarsRoverController(map);
 }