Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
PathfinderCompareHeuristic Class Reference

Helper class for the open list priority queue in the A* pathfinder to sort the pathfinder nodes by cost. More...

+ Collaboration diagram for PathfinderCompareHeuristic:

Public Member Functions

 PathfinderCompareHeuristic (Pathfinder *pf)
 
bool operator() (v3s16 pos1, v3s16 pos2)
 

Private Attributes

PathfindermyPathfinder
 

Detailed Description

Helper class for the open list priority queue in the A* pathfinder to sort the pathfinder nodes by cost.

Constructor & Destructor Documentation

◆ PathfinderCompareHeuristic()

PathfinderCompareHeuristic::PathfinderCompareHeuristic ( Pathfinder * pf)
inline

References myPathfinder.

Member Function Documentation

◆ operator()()

bool PathfinderCompareHeuristic::operator() ( v3s16 pos1,
v3s16 pos2 )
inline

References PathGridnode::estimated_cost, Pathfinder::getIndexElement(), Pathfinder::getIndexPos(), myPathfinder, and PathGridnode::valid.

+ Here is the call graph for this function:

Member Data Documentation

◆ myPathfinder

Pathfinder* PathfinderCompareHeuristic::myPathfinder
private

The documentation for this class was generated from the following file: