Fix not carrying width and height in Simulation
This commit is contained in:
parent
227357a745
commit
b95d39d2b4
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,9 @@ class Simulation {
|
|||
int _dispersal;
|
||||
CellPattern _pattern;
|
||||
|
||||
int get w => map.width;
|
||||
int get h => map.height;
|
||||
|
||||
Simulation(int w, int h) : this.map = new Grid.fill(w, h, _getGOLCell()) {
|
||||
print("Grid creation finished");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue