From 4e09b4c2e92806dc3230e6b9f1c2a1ff023c6080 Mon Sep 17 00:00:00 2001 From: Oxore Date: Sat, 2 Dec 2017 18:07:04 +0300 Subject: Rearrange includes; replace uint8_t by char --- include/common.h | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) (limited to 'include/common.h') diff --git a/include/common.h b/include/common.h index 136edaa..4452bf0 100644 --- a/include/common.h +++ b/include/common.h @@ -1,19 +1,10 @@ -#ifndef TCOMMON_H -#define TCOMMON_H - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "tet_conf.h" +/* + * Types + * + * */ typedef struct Cell { - uint8_t a; // active/empty state of cell + char a; // active/empty state of cell sfColor fColor; // fill color } Cell; @@ -34,7 +25,7 @@ typedef struct Shape { int y; // y coord of shape's bottom int t; // shape type sfColor fColor; // shape color - uint8_t c[4][4]; // array of logic shape cells + char c[4][4]; // array of logic shape cells sfRectangleShape *p[4][4]; // array of physical shape cells sfVector2f cSize; // shape rectangles size variable x/y } Shape; @@ -87,5 +78,3 @@ typedef struct Text { char *text; void *sfText; } Text; - -#endif -- cgit v1.2.3