aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/headers/Subconscious.hpp
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-02-11 22:55:22 +0100
committerNao Pross <naopross@thearcway.org>2018-02-11 22:55:22 +0100
commite3fd07e606098dd9cdf0b7ed806340d8466b5572 (patch)
treecbf5cc81afcbbc62784f7c6fc02d4418cf03cee7 /src/main/headers/Subconscious.hpp
parentRemove redundant scenesOffsetX/Y, replaced with panX (diff)
downloadSubconscious-old-e3fd07e606098dd9cdf0b7ed806340d8466b5572.tar.gz
Subconscious-old-e3fd07e606098dd9cdf0b7ed806340d8466b5572.zip
Reimplement in C++ with SFML (mostly)
Diffstat (limited to 'src/main/headers/Subconscious.hpp')
-rw-r--r--src/main/headers/Subconscious.hpp33
1 files changed, 33 insertions, 0 deletions
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 <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