diff options
author | alberth <alberth@openttd.org> | 2010-10-02 19:53:20 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-10-02 19:53:20 +0000 |
commit | 6a9b2056700cd1e71c525bd5e5ab90fcc5b93dbc (patch) | |
tree | ae057ba9195fd3f10135e71281f1c1adc6296f49 /src/pathfinder/npf/aystar.h | |
parent | 0c08955f4da90443eaea1e9d6a862e002d97345b (diff) | |
download | openttd-6a9b2056700cd1e71c525bd5e5ab90fcc5b93dbc.tar.xz |
(svn r20889) -Codechange: Make ClosedListHash, OpenListQueue, and OpenListHash data protected, and rename for coding style.
Diffstat (limited to 'src/pathfinder/npf/aystar.h')
-rw-r--r-- | src/pathfinder/npf/aystar.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/pathfinder/npf/aystar.h b/src/pathfinder/npf/aystar.h index 38101cc91..3c346a80c 100644 --- a/src/pathfinder/npf/aystar.h +++ b/src/pathfinder/npf/aystar.h @@ -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); |