Add Clear Board Function to Engine

This commit is contained in:
Marty Oehme 2018-07-08 19:45:04 +02:00
parent 49b036ffe9
commit 016b166d50

View file

@ -28,11 +28,14 @@ class App {
} }
void reset() { void reset() {
// grid = new Grid(100, 100);
// running = false;
grid.reset(); grid.reset();
} }
void clear() {
grid = new Grid(100, 100);
running = false;
}
void process(num now) { void process(num now) {
_drawLag += _elapsed.elapsedMilliseconds; _drawLag += _elapsed.elapsedMilliseconds;
_updateLag += _elapsed.elapsedMilliseconds; _updateLag += _elapsed.elapsedMilliseconds;