From ffbe61a6e5f5969a8b0c2a675db6667af96450f1 Mon Sep 17 00:00:00 2001 From: jonny_jr9 Date: Fri, 10 Nov 2023 12:54:33 +0100 Subject: [PATCH] Add empty function definitions Add definitions for every function that does nothing for now. -> now able to implement and call those functions already --- src/input.c | 6 +++++- src/menu.c | 19 ++++++++++++++++++- src/render.c | 4 ++++ src/snake.c | 26 +++++++++++++++++++++++++- 4 files changed, 52 insertions(+), 3 deletions(-) diff --git a/src/input.c b/src/input.c index dc1f57b..77d4773 100644 --- a/src/input.c +++ b/src/input.c @@ -1 +1,5 @@ -#include "input.h" \ No newline at end of file +#include "input.h" + +void processInputEvent(){ + return; +} \ No newline at end of file diff --git a/src/menu.c b/src/menu.c index b8d27bb..e24988b 100644 --- a/src/menu.c +++ b/src/menu.c @@ -1 +1,18 @@ -#include "menu.h" \ No newline at end of file +#include "menu.h" + + +void showStartScreen(){ + return; +} + +void showLeaderboard(){ + return; +} + +void showSettings(){ + return; +} + +void menuHandleInput(int event){ + return; +} \ No newline at end of file diff --git a/src/render.c b/src/render.c index e600bc0..cc2b428 100644 --- a/src/render.c +++ b/src/render.c @@ -1 +1,5 @@ #include "render.h" + +void renderGame(){ + return; +} \ No newline at end of file diff --git a/src/snake.c b/src/snake.c index 57188ca..bd5d5eb 100644 --- a/src/snake.c +++ b/src/snake.c @@ -1 +1,25 @@ -#include "snake.h" \ No newline at end of file +#include "snake.h" + +void snakeInit(){ + return; +} + +void snakeGrow(){ + return; +} + +void snakeMove(){ + return; +} + +void snakeSetDir(snakeDirection_t dir){ + return; +} + +bool snakeIsAlive(){ + return true; +} + +void snakeSetHeadPos(){ + return; +} \ No newline at end of file