diff options
Diffstat (limited to 'src/game.h')
-rw-r--r-- | src/game.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game.h b/src/game.h index 5f13672..839be67 100644 --- a/src/game.h +++ b/src/game.h | |||
@@ -12,6 +12,7 @@ | |||
12 | #include "interpolation.h" | 12 | #include "interpolation.h" |
13 | #include "consts.h" | 13 | #include "consts.h" |
14 | #include "sign.h" | 14 | #include "sign.h" |
15 | #include "menu.h" | ||
15 | 16 | ||
16 | class Renderer; | 17 | class Renderer; |
17 | 18 | ||
@@ -23,7 +24,8 @@ enum class LoseState { | |||
23 | None, | 24 | None, |
24 | PoppingLamps, | 25 | PoppingLamps, |
25 | PoppingPlayer, | 26 | PoppingPlayer, |
26 | Outro | 27 | Outro, |
28 | Done | ||
27 | }; | 29 | }; |
28 | 30 | ||
29 | struct Input { | 31 | struct Input { |
@@ -60,8 +62,10 @@ public: | |||
60 | 62 | ||
61 | std::mt19937& rng; | 63 | std::mt19937& rng; |
62 | Muxer& muxer; | 64 | Muxer& muxer; |
65 | Renderer& renderer; | ||
63 | 66 | ||
64 | bool quit = false; | 67 | bool quit = false; |
68 | bool quitting = false; // <- whether we will quit after losing, vs starting a new game | ||
65 | LoseState losing = LoseState::None; | 69 | LoseState losing = LoseState::None; |
66 | 70 | ||
67 | Map map; | 71 | Map map; |
@@ -110,6 +114,8 @@ public: | |||
110 | Interpolation signFade; | 114 | Interpolation signFade; |
111 | Sign sign; | 115 | Sign sign; |
112 | 116 | ||
117 | Menu menu; | ||
118 | |||
113 | private: | 119 | private: |
114 | 120 | ||
115 | void tickDirty(bool onlyDark); | 121 | void tickDirty(bool onlyDark); |