From 948ee5629d948a9c49ae62412e784bee08fa4c3c Mon Sep 17 00:00:00 2001 From: Anzhelika Nikolaieva Date: Sun, 23 Apr 2023 11:49:10 +0000 Subject: [PATCH] Update 'a3/game.h' --- a3/game.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/a3/game.h b/a3/game.h index 29b14fb..02ed4b3 100644 --- a/a3/game.h +++ b/a3/game.h @@ -2,6 +2,8 @@ #define _GAME_H_INCLUDE_ #include "world.h" + +#define MOUSE_COUNT 5 // Set of variables that expresses state of the game. // struct game { @@ -12,13 +14,14 @@ struct game { // X position of the cat int catx_position; // Y opsition of the cat - int caty_position;; + int caty_position; // X position of the mouse - int mousex; + int mousex[MOUSE_COUNT]; // Y position of the mouse - int mousey; + int mousey[MOUSE_COUNT]; // Funky message char message[100]; + int mouse_state[MOUSE_COUNT]; }; // Returns pointer to newly allocated state