summaryrefslogtreecommitdiff
path: root/include/functions.h
blob: 01d13e8985dc3813174d66c01498be10e65dd238 (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
#ifndef TFUNCTIONS_H
#define TFUNCTIONS_H

/* Prototypes of functions*/
void tKeyCtrl();
void initFld();
void tTick();
void resetActiveShape();
void putShape();
void checkLevelUp(Game *game);
int cellCollisionCheck(int dir);
int wallCollisionCheck();
int cellRotCollisionCheck();
int wallRotCollisionCheck();
void rotateLeft();
void rotateRight();
void rotateShape();
int linesRmScore();
void scoreDisplay(int s, Text *textScore);
void levelDisplay(int s, Text *textLevel);
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();

#endif