(svn r20889) -Codechange: Make ClosedListHash, OpenListQueue, and OpenListHash data protected, and rename for coding style.

This commit is contained in:
alberth
2010-10-02 19:53:20 +00:00
parent 0c08955f4d
commit 6a9b205670
2 changed files with 24 additions and 29 deletions

View File

@@ -150,15 +150,10 @@ struct AyStar {
void Clear();
void CheckTile(AyStarNode *current, OpenListNode *parent);
/* These will contain the open and closed lists */
/* The actual closed list */
Hash ClosedListHash;
/* The open queue */
BinaryHeap OpenListQueue;
/* An extra hash to speed up the process of looking up an element in
* the open list */
Hash OpenListHash;
protected:
Hash closedlist_hash; ///< The actual closed list.
BinaryHeap openlist_queue; ///< The open queue.
Hash openlist_hash; ///< An extra hash to speed up the process of looking up an element in the open list.
void OpenListAdd(PathNode *parent, const AyStarNode *node, int f, int g);
OpenListNode *OpenListIsInList(const AyStarNode *node);