diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-02-13 00:15:33 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-02-13 00:15:33 +0000 |
commit | 85f211ea50df2d48c0400b2a267808f798b524fa (patch) | |
tree | deb1a7ec15369e1b8b9def4a221548e87214d320 /src/being.cpp | |
parent | 4daa948c97c738ae102559635be3b89dc2b78dc4 (diff) | |
download | mana-85f211ea50df2d48c0400b2a267808f798b524fa.tar.gz mana-85f211ea50df2d48c0400b2a267808f798b524fa.tar.bz2 mana-85f211ea50df2d48c0400b2a267808f798b524fa.tar.xz mana-85f211ea50df2d48c0400b2a267808f798b524fa.zip |
New shorter and more flexible pathfinding implementation, which is hopefully
also more stable.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/being.cpp b/src/being.cpp index d8401673..8207d4a2 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -27,7 +27,7 @@ Being *player_node = NULL; -std::list<Being *> beings; +std::list<Being*> beings; PATH_NODE::PATH_NODE(unsigned short x, unsigned short y): next(NULL) @@ -36,13 +36,6 @@ PATH_NODE::PATH_NODE(unsigned short x, unsigned short y): this->y = y; } -PATH_NODE *calculate_path( - unsigned short src_x, unsigned short src_y, - unsigned short dest_x, unsigned short dest_y) -{ - return find_path(1, src_x, src_y, dest_x, dest_y); -} - void empty() { std::list<Being *>::iterator i; for (i = beings.begin(); i != beings.end(); i++) { |