diff options
author | Oxore <oxore@protonmail.com> | 2018-06-25 15:50:58 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2018-06-25 15:50:58 +0300 |
commit | bf0e5690a31d4c3cecd2ba512729a0b73989bbda (patch) | |
tree | 5b95c5a52c8a9025593231ee0285d81d40890f0f /include/functions.h | |
parent | 63e929f7a23b44ff2b1e33ccf16307de20c2bdc8 (diff) |
Major refactoring
Fix memleak in KeyMap, fix memleak caused by loading a yaml file in
main.c. Change Copyright information. Rename functions.c and .h to
engine.c and .h. Take field and shape related functions to separate file
(still not all of them) and refactor them a lot. Refactor collision
detection. Add more warnings. Add sanitizer option commented out.
Diffstat (limited to 'include/functions.h')
-rw-r--r-- | include/functions.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/include/functions.h b/include/functions.h deleted file mode 100644 index f47f816..0000000 --- a/include/functions.h +++ /dev/null @@ -1,34 +0,0 @@ -#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 getMoveLatencyOfLevel(int level); -int cellCollisionCheckHere(Field *fld, Shape *active); -int cellCollisionCheck(int dir); -int wallCollisionCheck(); -int cellRotCollisionCheck(); -int wallRotCollisionCheck(); -void rotateLeft(); -void rotateRight(); -void rotateShape(); -int rmLines(); -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(); |