Modified the ObjectStore and the Hashmap and added the ObjectStore to

the GameManager
This commit is contained in:
abdelrahman committed 2022-09-21 19:55:45 +01:00
1 parent a0e76bc1fc
commit 79f28100bd
8 files changed
+181 -73

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
#ifndef GAME_H
#define GAME_H
#include "ObjectStore.h"
#include <stdbool.h>
bool init_game(const char *game_name, int window_width, int window_height,
bool full_screen);
bool game_running();
void add_object(void *object, const char *object_tag, EventHandlerPtr eh,
UpdateFuncPtr uf, RenderFuncPtr rf);
void remove_object(const char *object_tag);
void handle_events();
void update();
void render();
void close_game();
#endif // !GAME_H