summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/body.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/body.h b/include/body.h
index cfb6f5a..a1957bc 100644
--- a/include/body.h
+++ b/include/body.h
@@ -8,7 +8,8 @@ typedef struct snake SNAKE;
SNAKE *makeSnake(int startx, int starty, int len);
void deleteSnake(SNAKE *sp);
-void updateSnake(SNAKE *sp, int dir);
+void updateSnake(SNAKE *sp, int dir, int maxx, int maxy, bool *collision);
+bool checkSnake(SNAKE *sp, int maxx, int maxy);
int getSnakeTailx(SNAKE *sp);
int getSnakeTaily(SNAKE *sp);