From a98793204c51ccb6685aad5ac041d0bdddacefaf Mon Sep 17 00:00:00 2001 From: Anzhelika Nikolaieva Date: Sun, 23 Apr 2023 11:33:07 +0000 Subject: [PATCH] Update 'a3/game.h' --- a3/game.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/a3/game.h b/a3/game.h index cf3539b..4436554 100644 --- a/a3/game.h +++ b/a3/game.h @@ -24,12 +24,16 @@ struct game { }; // Returns pointer to newly allocated state -void* init_game(struct game *game); +//void* init_game(struct game *game); -void update_game(struct game *game, int key); -void draw_game(struct game *game); +//void update_game(struct game *game, int key); +//void draw_game(struct game *game); // Changes world according to the game state (pressed key, screen size or other event) -int game_event(struct event* event,void* game); - +//int game_event(struct event* event,void* game); +struct game* create_world(int width, int height, int mouse_count); +void destroy_world(struct game* game); +void move_cat(struct game* game, char direction); +void move_mouse(struct game* game, int mouse_index); +int get_living_mouse_count(struct game* game); #endif