diff --git a/src/libUnuk/Engine/Pathfinding.h b/src/libUnuk/Engine/Pathfinding.h index 287e561..21f6ab2 100644 --- a/src/libUnuk/Engine/Pathfinding.h +++ b/src/libUnuk/Engine/Pathfinding.h @@ -40,4 +40,15 @@ public: UserState _UserState; }; + + // Compare the f values of the two nodes. + class HeapCompare_f { + public: + bool operator()(const Node* x, const Node* y) const { + return x->f > y->f; + } + }; + +public: + };