@par The closed list is the list of polygons that were fully evaluated during the last navigation graph search. (A* or Dijkstra)
| 3674 | /// the last navigation graph search. (A* or Dijkstra) |
| 3675 | /// |
| 3676 | bool dtNavMeshQuery::isInClosedList(dtPolyRef ref) const |
| 3677 | { |
| 3678 | if (!m_nodePool) return false; |
| 3679 | |
| 3680 | dtNode* nodes[DT_MAX_STATES_PER_NODE]; |
| 3681 | int n= m_nodePool->findNodes(ref, nodes, DT_MAX_STATES_PER_NODE); |
| 3682 | |
| 3683 | for (int i=0; i<n; i++) |
| 3684 | { |
| 3685 | if (nodes[i]->flags & DT_NODE_CLOSED) |
| 3686 | return true; |
| 3687 | } |
| 3688 | |
| 3689 | return false; |
| 3690 | } |
no test coverage detected