Defines polygon filtering and traversal costs for navigation mesh query operations.
更多...
|
|
void | copyFrom (const dtQueryFilter *other) |
| | Copy data values from source filter
|
| |
|
bool | equals (const dtQueryFilter *other) const |
| | Check if two filters have the same data values
|
| |
| float | getCost (const float *pa, const float *pb, const dtPolyRef prevRef, const dtMeshTile *prevTile, const dtPoly *prevPoly, const dtPolyRef curRef, const dtMeshTile *curTile, const dtPoly *curPoly, const dtPolyRef nextRef, const dtMeshTile *nextTile, const dtPoly *nextPoly) const |
| | Returns cost to move from the beginning to the end of a line segment that is fully contained within a polygon. 更多...
|
| |
| bool | passFilter (const dtPolyRef ref, const dtMeshTile *tile, const dtPoly *poly) const |
| | Returns true if the polygon can be visited. 更多...
|
| |
|
| float | getAreaCost (const int i) const |
| | Returns the traversal cost of the area. 更多...
|
| |
| void | setAreaCost (const int i, const float cost) |
| | Sets the traversal cost of the area. 更多...
|
| |
|
const float * | getAllAreaCosts () const |
| |
|
float | getModifiedHeuristicScale () const |
| |
| float | getHeuristicScale () const |
| | Retrieves euclidean distance heuristic scale 更多...
|
| |
|
void | setHeuristicScale (const float newScale) |
| | Set euclidean distance heuristic scale
|
| |
| bool | isValidLinkSide (const unsigned char side) const |
| | Filters link in regards to its side. 更多...
|
| |
|
void | setIsBacktracking (const bool isBacktracking) |
| | Sets up filter for backtracking
|
| |
| bool | getIsBacktracking () const |
| | Retrieves information whether this filter is set up for backtracking 更多...
|
| |
|
void | setShouldIgnoreClosedNodes (const bool shouldIgnore) |
| | Instruct filter whether it can reopen nodes already on closed list
|
| |
| bool | getShouldIgnoreClosedNodes () const |
| | Retrieves information whether this filter allows reopening closed nodes 更多...
|
| |
| unsigned short | getIncludeFlags () const |
| | Returns the include flags for the filter. 更多...
|
| |
| void | setIncludeFlags (const unsigned short flags) |
| | Sets the include flags for the filter. 更多...
|
| |
| unsigned short | getExcludeFlags () const |
| | Returns the exclude flags for the filter. 更多...
|
| |
| void | setExcludeFlags (const unsigned short flags) |
| | Sets the exclude flags for the filter. 更多...
|
| |
|
| float | getInlineCost (const float *pa, const float *pb, const dtPolyRef prevRef, const dtMeshTile *prevTile, const dtPoly *prevPoly, const dtPolyRef curRef, const dtMeshTile *curTile, const dtPoly *curPoly, const dtPolyRef nextRef, const dtMeshTile *nextTile, const dtPoly *nextPoly) const |
| | inlined scoring function. 更多...
|
| |
| virtual float | getVirtualCost (const float *pa, const float *pb, const dtPolyRef prevRef, const dtMeshTile *prevTile, const dtPoly *prevPoly, const dtPolyRef curRef, const dtMeshTile *curTile, const dtPoly *curPoly, const dtPolyRef nextRef, const dtMeshTile *nextTile, const dtPoly *nextPoly) const |
| | virtual scoring function implementation (defaults to getInlineCost). 更多...
|
| |
| bool | passInlineFilter (const dtPolyRef ref, const dtMeshTile *tile, const dtPoly *poly) const |
| | inlined filter implementation. 更多...
|
| |
| virtual bool | passVirtualFilter (const dtPolyRef ref, const dtMeshTile *tile, const dtPoly *poly) const |
| | virtual filter implementation (defaults to passInlineFilter). 更多...
|
| |
Defines polygon filtering and traversal costs for navigation mesh query operations.