public PlutoRover(int x, int y, Direction direction, int gridWidth, int gridHeight, ICheckObstacles obstaclesChecker) { _gridWidth = gridWidth; _gridHeight = gridHeight; _obstaclesChecker = obstaclesChecker; _position = new Position(x, y, direction); }
public PlutoRover(Position position, int gridWidth, int gridHeight, ICheckObstacles obstaclesChecker) { _position = position; _gridWidth = gridWidth; _gridHeight = gridHeight; _obstaclesChecker = obstaclesChecker; }