-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.h
50 lines (32 loc) · 821 Bytes
/
game.h
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
41
42
43
44
45
46
47
48
49
50
#pragma once
#include "stdafx.h"
#ifndef IGEEK_RPG_TOOLKIT_GAME
#define IGEEK_RPG_TOOLKIT_GAME
#include "state_menu_main.h"
class Game {
GraphicsSettings grfx_settings_; //<
StateData state_data_; //<
sf::RenderWindow *window_; //<
sf::Event event_; //<
sf::Clock time_delta_; //<
float dt, //<
grid_size_;
_::AStack<State *> states_; //<
_::ADic<_::AString, int> supported_keys_; //<
void InitVariables();
void InitGraphicsSettings();
void InitWindow();
void InitKeys();
void InitStateData();
void InitStates();
public:
Game();
virtual ~Game();
void EndApplication();
void UpdateTimeDelta();
void UpdateEvents();
void Update();
void Render();
void Run();
};
#endif