Пример #1
0
 private static void ProceedCell(MazeCell nextMazeCell, int distance, ICollection <MazeCell> movementList)
 {
     nextMazeCell.Visited           = true;
     nextMazeCell.DistanceFromStart = distance;
     nextMazeCell.Update();
     movementList.Add(nextMazeCell);
 }
Пример #2
0
 private static void RemoveCellFromListAndMarkAsDone(MazeCell cellToCheck, ICollection <MazeCell> mList)
 {
     cellToCheck.Finished = true;
     cellToCheck.Update();
     mList.Remove(cellToCheck);
 }