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: Tetromino/Tetromino.h
- Revision:
- 8:5066ce13a430
- Parent:
- 7:2e37bad816cb
- Child:
- 15:afeefa3ceb61
--- a/Tetromino/Tetromino.h Fri Mar 15 07:55:23 2019 +0000 +++ b/Tetromino/Tetromino.h Fri Mar 15 16:39:06 2019 +0000 @@ -5,7 +5,7 @@ enum Type { I, O, T, J, L, S, Z }; - static Tetromino getTetrominoOfType(Type type); + static Tetromino getTetrominoOfType(Tetromino::Type type); Tetromino movedLeft(); Tetromino movedRight(); Tetromino movedDown(); @@ -16,8 +16,9 @@ Tetromino(); // TODO is this needed ~Tetromino(); Block blocks[4]; + private: Tetromino translated(int dx, int dy); + static Tetromino getTetrominoFromString(const char * str); Tetromino(Block a, Block b, Block c, Block d); - static Tetromino getTetrominoFromString(const char * str); }; \ No newline at end of file