From 751b9c2994c1f8b05fb5e3946f347915cd796b81 Mon Sep 17 00:00:00 2001 From: Anzhelika Nikolaieva Date: Thu, 20 Apr 2023 12:00:49 +0000 Subject: [PATCH] Update 'a3/game.h' --- a3/game.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/a3/game.h b/a3/game.h index dd78874..628d98a 100644 --- a/a3/game.h +++ b/a3/game.h @@ -2,6 +2,7 @@ #define _GAME_H_INCLUDE_ #include "world.h" +#define MOUSE_COUNT 5 // Set of variables that expresses state of the game. // struct game { @@ -14,12 +15,12 @@ struct game { // Y opsition of the cat 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; + int mouse_state[MOUSE_COUNT]; }; // Returns pointer to newly allocated state