aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-03 20:40:29 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:54 +0200
commitd27f1a89266e141a944f88e9080bdeca95c49da3 (patch)
treebe78081c7b71f335b59057d25bc817bcb1306d36 /src/interfaces
parentb8e33c5aa3417bdf7989bef55cc449f75f806b76 (diff)
refactor: add game initializer
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/game.hpp5
-rw-r--r--src/interfaces/game_initializer.hpp9
2 files changed, 13 insertions, 1 deletions
diff --git a/src/interfaces/game.hpp b/src/interfaces/game.hpp
index 114f019..eb13dc3 100644
--- a/src/interfaces/game.hpp
+++ b/src/interfaces/game.hpp
@@ -1,9 +1,12 @@
#pragma once
+#include "interfaces/input.hpp"
+#include "interfaces/scene.hpp"
+
class IGame
{
public:
virtual ~IGame() = default;
- virtual void run() = 0;
+ virtual void run(IScene &scene, IInputHandler &input_handler) = 0;
};
diff --git a/src/interfaces/game_initializer.hpp b/src/interfaces/game_initializer.hpp
new file mode 100644
index 0000000..5dea2e9
--- /dev/null
+++ b/src/interfaces/game_initializer.hpp
@@ -0,0 +1,9 @@
+#pragma once
+
+#include "interfaces/game.hpp"
+
+class IGameInitializer
+{
+public:
+ virtual void initialize() = 0;
+};