aboutsummaryrefslogtreecommitdiff
path: root/src/game/game.hpp
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/game/game.hpp
parentb8e33c5aa3417bdf7989bef55cc449f75f806b76 (diff)
refactor: add game initializer
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r--src/game/game.hpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp
index dd0d3c8..c52399d 100644
--- a/src/game/game.hpp
+++ b/src/game/game.hpp
@@ -9,18 +9,13 @@
#include <memory>
-class Game : public IGame,
- public AutoWirable<IGame, Game, IScene, IInputHandler, CursorController>
+class Game : public IGame, public AutoWirable<IGame, Game, CursorController>
{
public:
- explicit Game(std::shared_ptr<IScene> scene,
- std::shared_ptr<IInputHandler> input_handler,
- std::shared_ptr<CursorController> cursor_controller);
+ explicit Game(std::shared_ptr<CursorController> cursor_controller);
- void run() override;
+ void run(IScene &scene, IInputHandler &input_handler) override;
private:
- std::shared_ptr<IScene> _scene;
- std::shared_ptr<IInputHandler> _input_handler;
std::shared_ptr<CursorController> _cursor_controller;
};