private static void ProceedCell(MazeCell nextMazeCell, int distance, ICollection <MazeCell> movementList) { nextMazeCell.Visited = true; nextMazeCell.DistanceFromStart = distance; nextMazeCell.Update(); movementList.Add(nextMazeCell); }
private static void RemoveCellFromListAndMarkAsDone(MazeCell cellToCheck, ICollection <MazeCell> mList) { cellToCheck.Finished = true; cellToCheck.Update(); mList.Remove(cellToCheck); }