summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2017-12-02 18:07:04 +0300
committerOxore <oxore@protonmail.com>2017-12-02 18:07:04 +0300
commit4e09b4c2e92806dc3230e6b9f1c2a1ff023c6080 (patch)
treee943a47779d1836c52e8591a9ab347a38016c484 /include/common.h
parent0edc5e799a5485f405756695491f1a497c21243c (diff)
Rearrange includes; replace uint8_t by char
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h23
1 files changed, 6 insertions, 17 deletions
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 <SFML/Audio.h>
-#include <SFML/Graphics.h>
-#include <SFML/System.h>
-#include <SFML/Window/Keyboard.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdint.h>
-#include <string.h>
-#include <time.h>
-#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