Luanti 5.19.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

Pathfinder * myPathfinder

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.

Referenced by Pathfinder::updateCostHeuristic().

Here is the caller graph for this function:

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: