summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/common.h4
-rw-r--r--include/functions.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/include/common.h b/include/common.h
index 4452bf0..49c15d3 100644
--- a/include/common.h
+++ b/include/common.h
@@ -28,7 +28,7 @@ typedef struct Shape {
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;
+} Shape;
typedef struct Field {
sfVector2i pos;
@@ -38,7 +38,7 @@ typedef struct Field {
int cOutThick; // Field rectangles outline thickness
sfVector2f cSize; // shape rectangles size variable x/y
sfVector2i size;
-} Field;
+} Field;
typedef struct Window {
sfVideoMode mode;
diff --git a/include/functions.h b/include/functions.h
index 4f35bab..0e6e26a 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -8,9 +8,11 @@
void tKeyCtrl();
void initFld();
void tTick();
-void resetActiveShape();
+void resetActiveShape(Shape *active);
void putShape();
+int outOfFieldCheck(Field *fld, Shape *active);
void checkLevelUp(Game *game);
+int cellCollisionCheckHere(Field *fld, Shape *active);
int cellCollisionCheck(int dir);
int wallCollisionCheck();
int cellRotCollisionCheck();