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.
Fork of Tetris by
Block.h@1:b4aa36ae11ac, 2017-02-25 (annotated)
- Committer:
- sergun2311
- Date:
- Sat Feb 25 23:52:28 2017 +0000
- Revision:
- 1:b4aa36ae11ac
- Parent:
- 0:645509d95b8d
- Child:
- 2:6b6986c3d2bd
Tetris with gestures
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| sergun2311 | 0:645509d95b8d | 1 | #ifndef BLOCK_H |
| sergun2311 | 0:645509d95b8d | 2 | #define BLOCK_H |
| sergun2311 | 0:645509d95b8d | 3 | |
| sergun2311 | 0:645509d95b8d | 4 | class Block { |
| sergun2311 | 0:645509d95b8d | 5 | public: |
| sergun2311 | 0:645509d95b8d | 6 | Block(); |
| sergun2311 | 0:645509d95b8d | 7 | ~Block(); |
| sergun2311 | 0:645509d95b8d | 8 | int form; |
| sergun2311 | 0:645509d95b8d | 9 | int angle; |
| sergun2311 | 0:645509d95b8d | 10 | int x; |
| sergun2311 | 0:645509d95b8d | 11 | int y; |
| sergun2311 | 0:645509d95b8d | 12 | bool Active; |
| sergun2311 | 0:645509d95b8d | 13 | void rotateLeft(); |
| sergun2311 | 0:645509d95b8d | 14 | void rotateRight(); |
| sergun2311 | 0:645509d95b8d | 15 | bool CheckBottom(); |
| sergun2311 | 1:b4aa36ae11ac | 16 | bool CheckLeft(); |
| sergun2311 | 1:b4aa36ae11ac | 17 | bool CheckRight(); |
| sergun2311 | 1:b4aa36ae11ac | 18 | void moveLeft(); |
| sergun2311 | 1:b4aa36ae11ac | 19 | void moveRight(); |
| sergun2311 | 0:645509d95b8d | 20 | }; |
| sergun2311 | 0:645509d95b8d | 21 | |
| sergun2311 | 0:645509d95b8d | 22 | #endif |
