Пример #1
0
 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);
 }
Пример #2
0
 public PlutoRover(Position position, int gridWidth, int gridHeight, ICheckObstacles obstaclesChecker)
 {
     _position = position;
     _gridWidth = gridWidth;
     _gridHeight = gridHeight;
     _obstaclesChecker = obstaclesChecker;
 }