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

/* Prototypes of functions*/
void tKeyCtrl();
void initFld();
void tTick();
void resetActiveShape();
void putShape();
int cellCollisionCheck(int dir);
int wallCollisionCheck();
int cellRotCollisionCheck();
int wallRotCollisionCheck();
void rotateLeft();
void rotateRight();
void rotateShape();
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();
void cleanup();

#endif