示例#1
0
 public void Process()
 {
     while (requestQuque.Count > 0)
     {
         AStarRequest request = requestQuque.Dequeue();
         ProcessRequest(request);
     }
 }
示例#2
0
 public void SetRequest(AStarRequest request)
 {
     currentRequest = request;
     openList       = null;
     closedList     = null;
     for (int i = 0; i < nodes.Length; ++i)
     {
         nodes[i].Reset();
     }
 }
示例#3
0
 public bool ProcessRequest(AStarRequest request)
 {
     context.SetRequest(request);
     return(planner.Process(context));
 }
示例#4
0
 public void AddRequest(AStarRequest request)
 {
     requestQuque.Enqueue(request);
 }