From e3fd07e606098dd9cdf0b7ed806340d8466b5572 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sun, 11 Feb 2018 22:55:22 +0100 Subject: Reimplement in C++ with SFML (mostly) --- src/main/headers/Subconscious.hpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/main/headers/Subconscious.hpp (limited to 'src/main/headers/Subconscious.hpp') diff --git a/src/main/headers/Subconscious.hpp b/src/main/headers/Subconscious.hpp new file mode 100644 index 0000000..8713757 --- /dev/null +++ b/src/main/headers/Subconscious.hpp @@ -0,0 +1,33 @@ +#ifndef SUBCONSCIOUS_HPP +#define SUBCONSCIOUS_HPP + +#include "Scene.hpp" + +#include +#include + +class Subconscious +{ +public: + Subconscious(); + ~Subconscious(); + + void run(); + void demo(); + +private: + // game + bool _running = false; + bool _gameOver = false; + + // graphics + sf::RenderWindow _window; + + std::vector _scenes; + Scene *_currentScene = nullptr; + + void gameUpdate(); + void gameRender(); +}; + +#endif -- cgit v1.2.1