private void SetSpecialPoints(int mazeNumber) { Vector2 startPlaceForPathFinding = saveTextReader.GetStartPlaceForPathFinding(mazeNumber); Vector2 destinationPlaceForPathFinding = saveTextReader.GetDestinationPlaceForPathFinding(mazeNumber); IMazeElement startMazeElementForPathfind = planeBuilder.GetFromMazeArray((int)startPlaceForPathFinding.x, (int)startPlaceForPathFinding.y); IMazeElement destinationMazeElementForPathFind = planeBuilder.GetFromMazeArray((int)destinationPlaceForPathFinding.x, (int)destinationPlaceForPathFinding.y); mazeInOutPoints.SetInOutPointsAt(startMazeElementForPathfind, destinationMazeElementForPathFind); }
public void SetInOutPointsAt(IMazeElement inPoint, IMazeElement outPoint) { mazeInOutPoints.SetInOutPointsAt(inPoint, outPoint); }