You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dc57a11
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -799,24 +777,18 @@ template <class UserState> class AStarSearch
799
777
// Heap (simple vector but used as a heap, cf. Steve Rabin's game gems article)
800
778
vector< Node *> m_OpenList;
801
779
802
-
// Closed list is a vector.
803
-
// struct NodePtrComp
804
-
// {
805
-
// bool operator()(const Node* lhs, const Node* rhs) const { return lhs->f < rhs->f;} //#TODO: read the is same state/use unordered_set which has a better condition
// Successors is a vector filled out by the user each type successors to a node
@@ -861,6 +833,7 @@ template <class T> class AStarState
861
833
virtualboolGetSuccessors( AStarSearch<T> *astarsearch, T *parent_node ) = 0; // Retrieves all successors to this node and adds them via astarsearch.addSuccessor()
862
834
virtualfloatGetCost( T &successor ) = 0; // Computes the cost of travelling from this node to the successor node
863
835
virtualboolIsSameState( T &rhs ) = 0; // Returns true if this node is the same as the rhs node
0 commit comments