Level traversal works better now, compass is accurate, and direction is maintained when you traverse.
This commit is contained in:
parent
b75a2b8c31
commit
14c7f660de
11 changed files with 35 additions and 16 deletions
2
map.hpp
2
map.hpp
|
@ -52,7 +52,7 @@ public:
|
|||
bool iswall(size_t x, size_t y);
|
||||
bool can_move(Point move_to);
|
||||
// BUG: this isn't really neighbors anymore. Maybe move? Walk?
|
||||
bool neighbors(Point &out, bool random=false);
|
||||
bool neighbors(Point &out, bool random=false, int direction=1);
|
||||
|
||||
void make_paths();
|
||||
void set_target(const Point &at, int value=0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue