Results of today's code review session.
This commit is contained in:
parent
14b3ea7676
commit
f35b74f335
21 changed files with 64 additions and 59 deletions
11
pathing.cpp
11
pathing.cpp
|
@ -74,17 +74,6 @@ void Pathing::clear_target(const Point &at) {
|
|||
$input[at.y][at.x] = 1;
|
||||
}
|
||||
|
||||
void Pathing::random_flood(const Point from, std::function<void(Point at, int dnum)> cb) {
|
||||
// quick hack to try the idea
|
||||
matrix::each_cell it{$paths};
|
||||
it.x = from.x;
|
||||
it.y = from.y;
|
||||
|
||||
while(it.next()) {
|
||||
cb({it.x, it.y}, $paths[it.y][it.x]);
|
||||
}
|
||||
}
|
||||
|
||||
bool Pathing::INVARIANT() {
|
||||
using dbc::check;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue