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@2:6b6986c3d2bd, 2017-03-03 (annotated)
- Committer:
- sergun2311
- Date:
- Fri Mar 03 13:19:26 2017 +0000
- Revision:
- 2:6b6986c3d2bd
- Parent:
- 1:b4aa36ae11ac
- Child:
- 4:107d1d5a642e
TETRIS
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 | 2:6b6986c3d2bd | 9 | int nextForm; | 
| sergun2311 | 0:645509d95b8d | 10 | int angle; | 
| sergun2311 | 0:645509d95b8d | 11 | int x; | 
| sergun2311 | 0:645509d95b8d | 12 | int y; | 
| sergun2311 | 0:645509d95b8d | 13 | bool Active; | 
| sergun2311 | 0:645509d95b8d | 14 | void rotateLeft(); | 
| sergun2311 | 0:645509d95b8d | 15 | void rotateRight(); | 
| sergun2311 | 0:645509d95b8d | 16 | bool CheckBottom(); | 
| sergun2311 | 1:b4aa36ae11ac | 17 | bool CheckLeft(); | 
| sergun2311 | 1:b4aa36ae11ac | 18 | bool CheckRight(); | 
| sergun2311 | 2:6b6986c3d2bd | 19 | bool CheckRotateLeft(); | 
| sergun2311 | 2:6b6986c3d2bd | 20 | bool CheckRotateRight(); | 
| sergun2311 | 1:b4aa36ae11ac | 21 | void moveLeft(); | 
| sergun2311 | 1:b4aa36ae11ac | 22 | void moveRight(); | 
| sergun2311 | 0:645509d95b8d | 23 | }; | 
| sergun2311 | 0:645509d95b8d | 24 | |
| sergun2311 | 0:645509d95b8d | 25 | #endif | 
