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
Tetromino/Tetromino.h@4:aa433f9865a6, 2019-03-12 (annotated)
- Committer:
- el17ajf
- Date:
- Tue Mar 12 20:03:31 2019 +0000
- Revision:
- 4:aa433f9865a6
- Child:
- 5:3efbdcb3efaf
Tetromino class;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
el17ajf | 4:aa433f9865a6 | 1 | #include "Block.h" |
el17ajf | 4:aa433f9865a6 | 2 | |
el17ajf | 4:aa433f9865a6 | 3 | class Tetromino { |
el17ajf | 4:aa433f9865a6 | 4 | Tetromino translated(int dx, int dy); |
el17ajf | 4:aa433f9865a6 | 5 | public: |
el17ajf | 4:aa433f9865a6 | 6 | enum Type { |
el17ajf | 4:aa433f9865a6 | 7 | I, O, T, J, L, S, Z |
el17ajf | 4:aa433f9865a6 | 8 | }; |
el17ajf | 4:aa433f9865a6 | 9 | Tetrimino(); |
el17ajf | 4:aa433f9865a6 | 10 | Tetrimino(Type type); |
el17ajf | 4:aa433f9865a6 | 11 | Tetromino(Block a, Block b, Block c, Block d); |
el17ajf | 4:aa433f9865a6 | 12 | Block[] blocks; |
el17ajf | 4:aa433f9865a6 | 13 | Tetromino movedLeft(); |
el17ajf | 4:aa433f9865a6 | 14 | Tetromino movedRight(); |
el17ajf | 4:aa433f9865a6 | 15 | }; |