Remove output argument from clearMap function
This commit is contained in:
parent
e115ed2f48
commit
3a6e34945a
1 changed files with 3 additions and 4 deletions
|
@ -35,10 +35,9 @@ class Simulation {
|
||||||
|
|
||||||
Simulation.fromGrid(Grid<bool> map) : this.map = map;
|
Simulation.fromGrid(Grid<bool> map) : this.map = map;
|
||||||
|
|
||||||
Grid<bool> clearMap(Grid<bool> map) {
|
Grid<bool> clearMap() {
|
||||||
map ??= this.map;
|
dirty = true;
|
||||||
// dirty = true;
|
map.setAll(0, List.filled(map.length, false));
|
||||||
// map.setAll(0, List.filled(map.length, false));
|
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue