Move Reset Grid Implementation to Engine

This commit is contained in:
Marty Oehme 2018-07-09 17:32:59 +02:00
parent 4c1c805f24
commit 2d0e24bdf8
2 changed files with 1 additions and 1 deletions

View file

@ -43,7 +43,6 @@ class AppComponent implements OnInit {
} }
void onResetClicked() { void onResetClicked() {
engine.running = false;
engine.reset(); engine.reset();
} }

View file

@ -29,6 +29,7 @@ class Engine {
void reset() { void reset() {
_grid.reset(); _grid.reset();
running = false;
} }
void clear() { void clear() {