diff options
Diffstat (limited to 'src/game.h')
-rw-r--r-- | src/game.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game.h b/src/game.h index c7c2625..33d1965 100644 --- a/src/game.h +++ b/src/game.h | |||
@@ -30,7 +30,7 @@ class Game { | |||
30 | void loadMap(const Map& map); | 30 | void loadMap(const Map& map); |
31 | void detectCollision(Entity& collider, std::pair<double, double> old_position); | 31 | void detectCollision(Entity& collider, std::pair<double, double> old_position); |
32 | void saveGame(const Map& map, std::pair<double, double> position); | 32 | void saveGame(const Map& map, std::pair<double, double> position); |
33 | void schedule(double time, std::function<void ()>&& callback); | 33 | void schedule(double time, std::function<void ()> callback); |
34 | void playerDie(Entity& player, const Map& curMap); | 34 | void playerDie(Entity& player, const Map& curMap); |
35 | 35 | ||
36 | private: | 36 | private: |
@@ -40,8 +40,8 @@ class Game { | |||
40 | std::list<std::shared_ptr<Entity>> nextEntities; | 40 | std::list<std::shared_ptr<Entity>> nextEntities; |
41 | bool newWorld; | 41 | bool newWorld; |
42 | std::shared_ptr<Entity> player; | 42 | std::shared_ptr<Entity> player; |
43 | Map m{"../maps/embarass.txt"}; | 43 | Map m {Map::getNamedMap("embarass")}; |
44 | Map m2{"../maps/second.txt"}; | 44 | Map m2 {Map::getNamedMap("second")}; |
45 | Savefile save; | 45 | Savefile save; |
46 | std::list<std::pair<double, std::function<void ()>>> scheduled; | 46 | std::list<std::pair<double, std::function<void ()>>> scheduled; |
47 | bool shouldQuit = false; | 47 | bool shouldQuit = false; |