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:
- 34:0bb0d010e755
- Parent:
- 25:bf47fe41883a
- Child:
- 41:91b0c73b9e02
--- a/Tetromino/Tetromino.h Sat Apr 13 10:05:10 2019 +0000 +++ b/Tetromino/Tetromino.h Tue Apr 23 16:38:32 2019 +0000 @@ -72,12 +72,19 @@ */ static Type getRandomTetrominoType(); - Tetromino(); // TODO is this needed + /** + * Destructor + */ ~Tetromino(); + + /** + * The 4 blocks that make up the tetromino + */ Block blocks[4]; /** * @brief This Tetromino, but translated by [x, 0] + * @param x The x coordinate to move the Tetromino to * @returns A tetromino with the same blocks as this, translated by [x, 0] */ Tetromino teleportedTo(int x);