void onToNextSearch()
 {
     if (0 < queue.Count && !preoccupied)
     {
         preoccupied     = true;
         immediateSearch = queue.Dequeue();
         aStarSearch.StartSearch(immediateSearch.beginning, immediateSearch.end);
     }
 }
Beispiel #2
0
 private void EventAggregator_Test(Cell newCell, bool flag)
 {
     if (i == 1)
     {
         finish = newCell;
         i      = 0;
         var AStar = new AStarSearch();
         var map   = AStar.StartSearch(start.GraphVertex, finish.GraphVertex);
     }
     else
     {
         start = newCell;
         i++;
     }
 }