From 879c2c04d9c3879f871cfe79f9b25fd23c5184b4 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 11 Jun 2015 11:38:49 -0400 Subject: Wrote EntityManager --- src/game.h | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 src/game.h (limited to 'src/game.h') diff --git a/src/game.h b/src/game.h deleted file mode 100644 index dd4b2f7..0000000 --- a/src/game.h +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef GAME_H -#define GAME_H - -#include -#include -#include -#include -#include "map.h" -#include "world.h" - -class Entity; -struct GLFWwindow; - -struct Savefile { - const Map* map; - std::pair position; -}; - -class Game { - public: - Game(const char* maps); - void execute(GLFWwindow* window); - void loadMap(const Map& map, std::pair position); - void detectCollision(Entity& collider, std::pair old_position); - void saveGame(); - void schedule(double time, std::function callback); - void playerDie(); - const World& getWorld() const; - - private: - friend void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods); - - std::list> entities; - std::list> nextEntities; - std::pair nextPosition; - bool newWorld; - std::shared_ptr player; - const Map* currentMap; - Savefile save; - std::list>> scheduled; - bool shouldQuit = false; - World world; -}; - -#endif -- cgit 1.4.1