//Tetrad.h #pragma once #include //file I/O //global enum enum tetradType {O, S, Z, T, L, J, I}; //7 possible tetrads struct Tetrad { //!!! for rotation, may need to square off all tetrads!!!! //tetrad files must have this data in its header //width height blocked empty Tetrad() { } Tetrad(int type, int startx, int starty); ~Tetrad() { zeroOut(); } char **tetradData; int height, width; //used for char matrix int x,y; //location. used for gotoxy(...) when drawing //x is the vertical location, y is the horizontal bool show; //used for drawing. may use zeroOut() instead :o char empty, blocked; //movement fcns void rotateCW(); void rotateCCW(); //maitenance void zeroOut(); //deletes the matrix and resets the data };