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
Game/Game.h
- Committer:
- el17ajf
- Date:
- 2019-03-15
- Revision:
- 7:2e37bad816cb
- Parent:
- 6:a54df561f442
- Child:
- 11:fba7d54fd36b
File content as of revision 7:2e37bad816cb:
#ifndef GAME_H #define GAME_H #include "Grid.h" class Game { public: Game(); ~Game(); void update(); void draw(); private: void moveCurrentTetrominoDown(); void startLevel(int level); Grid grid; Tetromino::Type nextTetrominoType; Tetromino currentTetromino; void dropCurrentTetromino(); void nextLevel(); void over(); }; #endif