From d27f1a89266e141a944f88e9080bdeca95c49da3 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 3 Mar 2022 20:40:29 +0100 Subject: refactor: add game initializer --- src/game/game.hpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/game/game.hpp') 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 -class Game : public IGame, - public AutoWirable +class Game : public IGame, public AutoWirable { public: - explicit Game(std::shared_ptr scene, - std::shared_ptr input_handler, - std::shared_ptr cursor_controller); + explicit Game(std::shared_ptr cursor_controller); - void run() override; + void run(IScene &scene, IInputHandler &input_handler) override; private: - std::shared_ptr _scene; - std::shared_ptr _input_handler; std::shared_ptr _cursor_controller; }; -- cgit v1.2.3-18-g5258