summary refs log tree commit diff stats
path: root/mazeoflife.h
blob: 8a31d077626f94ecdf7b1150f2fd98b33fc94fce (plain) (blame)
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
28
#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;
  net_wrapper net;

  window_ptr window;
  renderer_ptr renderer;

  std::unique_ptr<State> state;

  bool should_quit = false;
};

#endif