diff options
Diffstat (limited to 'src/game.h')
-rw-r--r-- | src/game.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.h b/src/game.h index 4f2f3df..c7c2625 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(int frames, 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: |
@@ -43,7 +43,7 @@ class Game { | |||
43 | Map m{"../maps/embarass.txt"}; | 43 | Map m{"../maps/embarass.txt"}; |
44 | Map m2{"../maps/second.txt"}; | 44 | Map m2{"../maps/second.txt"}; |
45 | Savefile save; | 45 | Savefile save; |
46 | std::list<std::pair<int, std::function<void ()>>> scheduled; | 46 | std::list<std::pair<double, std::function<void ()>>> scheduled; |
47 | bool shouldQuit = false; | 47 | bool shouldQuit = false; |
48 | }; | 48 | }; |
49 | 49 | ||