1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#ifndef MAZEOFLIFE_H #define MAZEOFLIFE_H #include <memory> #include <random> #include "sdl.h" #include "state.h" const int WIDTH = 30; const int HEIGHT = 30; struct Game { std::mt19937 rng; sdl_wrapper sdl; ttf_wrapper ttf; window_ptr window; renderer_ptr renderer; std::unique_ptr<State> state; bool should_quit = false; }; #endif