From ae01c7fc02f17105f9e04af493f4dd8986fbcb8b Mon Sep 17 00:00:00 2001 From: Oxore Date: Thu, 30 Nov 2017 17:42:15 +0300 Subject: Move includes to root dir --- include/common.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 include/common.h (limited to 'include/common.h') diff --git a/include/common.h b/include/common.h new file mode 100644 index 0000000..5a3d63e --- /dev/null +++ b/include/common.h @@ -0,0 +1,42 @@ +#ifndef TCOMMON_H +#define TCOMMON_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "tet_conf.h" + +typedef struct tCell { + uint8_t a; // active/empty state of cell + sfColor fColor; // fill color +} tCell; +tCell fldCAtt[25][10];// fld cells attributes + + +/* + * shape coords + * y + * ^. . . . + * |. . . . + * |. . . . + * |. . . . + * 0------->x + * + */ + +typedef 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 +} shapeSt; +shapeSt actiSh, nxtShape; + +#endif -- cgit v1.2.3