blob: 8713757d280565fb35b717a3303f46224b43f10d (
plain)
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
|
#ifndef SUBCONSCIOUS_HPP
#define SUBCONSCIOUS_HPP
#include "Scene.hpp"
#include <SFML/Graphics.hpp>
#include <vector>
class Subconscious
{
public:
Subconscious();
~Subconscious();
void run();
void demo();
private:
// game
bool _running = false;
bool _gameOver = false;
// graphics
sf::RenderWindow _window;
std::vector<Scene *> _scenes;
Scene *_currentScene = nullptr;
void gameUpdate();
void gameRender();
};
#endif
|