summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/common.h6
-rw-r--r--src/include/functions.h4
2 files changed, 7 insertions, 3 deletions
diff --git a/src/include/common.h b/src/include/common.h
index b61cc5f..b080898 100644
--- a/src/include/common.h
+++ b/src/include/common.h
@@ -10,7 +10,6 @@
#include <stdint.h>
#include <string.h>
#include <time.h>
-#include "functions.h"
#include "tet_conf.h"
struct tCell {
@@ -31,7 +30,7 @@ struct tCell fldCAtt[25][10];// fld cells attributes
*
*/
-struct activeShape {
+struct shapeSt {
int x; // x coord of shape's left side
int y; // y coord of shape's bottom
int t; // shape type
@@ -39,6 +38,7 @@ struct activeShape {
uint8_t c[4][4]; // array of shape cells
};
-struct activeShape actiSh;
+struct shapeSt actiSh;
+struct shapeSt nxtShape;
#endif
diff --git a/src/include/functions.h b/src/include/functions.h
index dc8e927..e192f87 100644
--- a/src/include/functions.h
+++ b/src/include/functions.h
@@ -18,8 +18,12 @@ int linesRmScore();
void scoreDisplay();
void colorizeFld();
void colorizeActiSh();
+void drawFld(sfRenderWindow *window);
void menuTick();
void colorizeRandom();
void gameover();
+void genNextShape();
+void copyShape(struct shapeSt *localSh);
+void drawNextShape();
#endif