Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of el17ajf by
Diff: Game/Game.h
- Revision:
- 7:2e37bad816cb
- Parent:
- 6:a54df561f442
- Child:
- 11:fba7d54fd36b
--- a/Game/Game.h Thu Mar 14 12:08:10 2019 +0000 +++ b/Game/Game.h Fri Mar 15 07:55:23 2019 +0000 @@ -7,17 +7,17 @@ public: Game(); ~Game(); - void over(); void update(); void draw(); - void nextLevel(); private: - void MoveCurrentTetrominoDown(); + void moveCurrentTetrominoDown(); void startLevel(int level); Grid grid; - Tetromino::Type nextTetrominoType = O; - Tetromino currentTetromino = - Tetromino::getTetrominoOfType(nextTetrominoType); + Tetromino::Type nextTetrominoType; + Tetromino currentTetromino; + void dropCurrentTetromino(); + void nextLevel(); + void over(); }; #endif \ No newline at end of file