blob: 0e6e26a012336843f8012e3163bec24ddc0ab154 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#define RIGHT 0b0001
#define DOWN 0b0010
#define UP 0b0100
#define LEFT 0b1000
#define RIGHTHOLD 0b10000
#define LEFTHOLD 0b10000000
void tKeyCtrl();
void initFld();
void tTick();
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();
int wallRotCollisionCheck();
void rotateLeft();
void rotateRight();
void rotateShape();
int linesRmScore();
void valueAfterTextDisplay(int value, List *texts, char *type);
void colorizeFld();
void colorizeActive();
void drawFld(sfRenderWindow *window);
void colorizeRandom(Field *fld);
void gameover(Game *game);
void genNextShape();
void copyShape(Shape *localSh);
void drawNextShape();
void freeFld();
|