From 103587c2d5f9deb20e549a86cdf5023b429cc6a1 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 18 Mar 2015 18:23:54 -0400 Subject: Wrote an XML Schema describing maps file and also changed the spec a bit --- src/game.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/game.h') diff --git a/src/game.h b/src/game.h index 3f0fcc8..dd4b2f7 100644 --- a/src/game.h +++ b/src/game.h @@ -6,6 +6,7 @@ #include #include #include "map.h" +#include "world.h" class Entity; struct GLFWwindow; @@ -24,14 +25,11 @@ class Game { void saveGame(); void schedule(double time, std::function callback); void playerDie(); - const Map& getMap(int id) const; + const World& getWorld() const; private: friend void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods); - std::map maps; - int startMap; - std::pair startPos; std::list> entities; std::list> nextEntities; std::pair nextPosition; @@ -41,6 +39,7 @@ class Game { Savefile save; std::list>> scheduled; bool shouldQuit = false; + World world; }; #endif -- cgit 1.4.1