Tetris game on mikroTFT touchscreen and LPC1768
Diff: Block.h
- Revision:
- 4:107d1d5a642e
- Parent:
- 2:6b6986c3d2bd
--- a/Block.h Sat Mar 11 19:50:03 2017 +0000 +++ b/Block.h Sat Mar 18 14:45:16 2017 +0000 @@ -1,25 +1,26 @@ #ifndef BLOCK_H #define BLOCK_H -class Block { - public: - Block(); - ~Block(); - int form; - int nextForm; - int angle; - int x; - int y; - bool Active; - void rotateLeft(); - void rotateRight(); - bool CheckBottom(); - bool CheckLeft(); - bool CheckRight(); - bool CheckRotateLeft(); - bool CheckRotateRight(); - void moveLeft(); - void moveRight(); +class Block +{ +public: + Block(); + ~Block(); + int form; + int nextForm; + int angle; + int x; + int y; + bool Active; + void rotateLeft(); + void rotateRight(); + bool CheckBottom(); + bool CheckLeft(); + bool CheckRight(); + bool CheckRotateLeft(); + bool CheckRotateRight(); + void moveLeft(); + void moveRight(); }; - + #endif \ No newline at end of file