summary refs log tree commit diff stats
path: root/src/game.h
blob: 7bd038ec1ea0bf747e7b1364ce53781071f18b64 (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
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef GAME_H_1014DDC9
#define GAME_H_1014DDC9

#include "renderer.h"
#include "entity_manager.h"
#include "system_manager.h"

class Game {
public:

  Game(GLFWwindow* window);

  void execute();

  inline EntityManager& getEntityManager()
  {
    return entityManager_;
  }

  inline SystemManager& getSystemManager()
  {
    return systemManager_;
  }

  friend void key_callback(
    GLFWwindow* window,
    int key,
    int scancode,
    int action,
    int mods);

private:

  EntityManager entityManager_;
  SystemManager systemManager_;
  GLFWwindow* const window_;
  bool shouldQuit_ = false;
};

#endif /* end of include guard: GAME_H_1014DDC9 */