diff options
Diffstat (limited to 'mazeoflife.h')
| -rw-r--r-- | mazeoflife.h | 21 | 
1 files changed, 21 insertions, 0 deletions
| diff --git a/mazeoflife.h b/mazeoflife.h index 3cc6d6d..8a31d07 100644 --- a/mazeoflife.h +++ b/mazeoflife.h | |||
| @@ -1,7 +1,28 @@ | |||
| 1 | #ifndef MAZEOFLIFE_H | 1 | #ifndef MAZEOFLIFE_H | 
| 2 | #define MAZEOFLIFE_H | 2 | #define MAZEOFLIFE_H | 
| 3 | 3 | ||
| 4 | #include <memory> | ||
| 5 | #include <random> | ||
| 6 | |||
| 7 | #include "sdl.h" | ||
| 8 | #include "state.h" | ||
| 9 | |||
| 4 | const int WIDTH = 30; | 10 | const int WIDTH = 30; | 
| 5 | const int HEIGHT = 30; | 11 | const int HEIGHT = 30; | 
| 6 | 12 | ||
| 13 | struct Game { | ||
| 14 | std::mt19937 rng; | ||
| 15 | |||
| 16 | sdl_wrapper sdl; | ||
| 17 | ttf_wrapper ttf; | ||
| 18 | net_wrapper net; | ||
| 19 | |||
| 20 | window_ptr window; | ||
| 21 | renderer_ptr renderer; | ||
| 22 | |||
| 23 | std::unique_ptr<State> state; | ||
| 24 | |||
| 25 | bool should_quit = false; | ||
| 26 | }; | ||
| 27 | |||
| 7 | #endif | 28 | #endif | 
