From 3369dd2727b7b205bb3f3d33a9f69cd630a07b6f Mon Sep 17 00:00:00 2001 From: Anzhelika Nikolaieva Date: Sun, 23 Apr 2023 11:45:02 +0000 Subject: [PATCH] Delete 'a3/game.h' --- a3/game.h | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 a3/game.h diff --git a/a3/game.h b/a3/game.h deleted file mode 100644 index 4436554..0000000 --- a/a3/game.h +++ /dev/null @@ -1,39 +0,0 @@ -#ifndef _GAME_H_INCLUDE_ -#define _GAME_H_INCLUDE_ -#include "world.h" - -#define MOUSE_COUNT 5 -// Set of variables that expresses state of the game. -// -struct game { - // X speed of the cat - int catx; - // Y speed of the cat - int caty; - // X position of the cat - int catx_position; - // Y opsition of the cat - int caty_position;; - // X position of the mouse - int mousex[MOUSE_COUNT]; - // Y position of the mouse - int mousey[MOUSE_COUNT]; - // Funky message - char message[100]; - int mouse_state[MOUSE_COUNT]; -}; - -// Returns pointer to newly allocated state -//void* init_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); -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