Пример #1
0
 /// <summary>
 /// Setup search
 /// </summary>
 /// <param name="mazeMap">Map to search</param>
 public void Initialize(Maze mazeMap)
 {
     if (mazeMap == null)
         throw new System.ArgumentNullException("Invalid Maze");
     SearchStatus = SearchStatus.Stopped;
     _openList = new List<SearchNode>();
     _closedList = new List<SearchNode>();
     _paths = new Dictionary<Point, Point>();
     _maze = mazeMap;
 }