public MarsRover(Int32 xCoordinate, Int32 yCoordinate, Char initialDirection) { this.XCoordinate = xCoordinate; this.YCoordinate = yCoordinate; this.roverState = setInitialState(initialDirection); roverController = new MarsRoverController(new Grid()); }
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); }