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