From d9349f10d6d1972e87aea76d502703fae128a0e5 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 14 Mar 2015 17:58:50 -0400 Subject: Removed some unnecessary parameters from methods --- src/game.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/game.h') diff --git a/src/game.h b/src/game.h index 065aca8..bc31912 100644 --- a/src/game.h +++ b/src/game.h @@ -30,9 +30,9 @@ class Game { void execute(GLFWwindow* window); void loadMap(const Map& map); void detectCollision(Entity& collider, std::pair old_position); - void saveGame(const Map& map, std::pair position); + void saveGame(); void schedule(double time, std::function callback); - void playerDie(Entity& player, const Map& curMap); + void playerDie(); private: friend void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods); @@ -41,6 +41,7 @@ class Game { std::list> nextEntities; bool newWorld; std::shared_ptr player; + const Map* currentMap; Savefile save; std::list>> scheduled; bool shouldQuit = false; -- cgit 1.4.1