From 603af77207d98b607de80bb734e4123bb9279786 Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Sat, 10 Dec 2022 16:59:04 -0800 Subject: Move include/ into src/ --- src/include/body.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/include/body.h (limited to 'src/include') diff --git a/src/include/body.h b/src/include/body.h new file mode 100644 index 0000000..29241bf --- /dev/null +++ b/src/include/body.h @@ -0,0 +1,19 @@ +#ifndef BODY_H +#define BODY_H + +typedef struct node NODE; + +typedef struct snake SNAKE; + +SNAKE *makeSnake(int startx, int starty, int len); +void deleteSnake(SNAKE *sp); + +void updateSnake(SNAKE *sp, int dir, int maxx, int maxy, bool *collision, int *fruit_loc, bool *fruit, int *score); +bool checkSnake(SNAKE *sp, int maxx, int maxy); + +int getSnakeTailx(SNAKE *sp); +int getSnakeTaily(SNAKE *sp); +int getSnakeHeadx(SNAKE *sp); +int getSnakeHeady(SNAKE *sp); + +#endif -- cgit