#ifndef TCOMMON_H #define TCOMMON_H #include #include #include #include #include #include #include #include #include #include "tet_conf.h" struct tCell { uint8_t a; // active/empty state of cell sfColor fColor; // fill color }; struct tCell fldCAtt[25][10];// fld cells attributes /* * shape coords * y * ^. . . . * |. . . . * |. . . . * |. . . . * 0------->x * */ struct shapeSt { int x; // x coord of shape's left side int y; // y coord of shape's bottom int t; // shape type sfColor fColor; // shape color uint8_t c[4][4]; // array of shape cells }; struct shapeSt actiSh; struct shapeSt nxtShape; #endif