Refactor the Map::neighbors so that it's part of pathing where it should be.
This commit is contained in:
parent
d4355a608d
commit
e6c225f1c8
3 changed files with 49 additions and 45 deletions
|
@ -25,6 +25,7 @@ public:
|
|||
Matrix &paths() { return $paths; }
|
||||
Matrix &input() { return $input; }
|
||||
int distance(Point to) { return $paths[to.y][to.x];}
|
||||
bool random_walk(Point &out, bool random, int direction);
|
||||
|
||||
bool INVARIANT();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue