TetrisAttack/src/CBLockLoc.h
raw| 1 | #ifndef _CBLOCKLOC_ |
| 2 | #define _CBLOCKLOC_ |
| 3 | |
| 4 | class CBlockLoc |
| 5 | { |
| 6 | public: |
| 7 | CBlockLoc(int x, int y, int negX, int posX, int negY, int posY); //! X and y give its center, the other values give its shape |
| 8 | bool isTouching(CBlockLoc o); //! Check if this block is touching another block |
| 9 | |
| 10 | private: |
| 11 | int x, y, negX, negY, posX, posY; |
| 12 | }; |
| 13 | |
| 14 | #endif |