diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-03 19:41:23 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:54 +0200 |
commit | 93123e97251fc791c1cac193d675cce9a1ac2de6 (patch) | |
tree | 4486453695d6f715e767bd91bcee89c92f54f7ba /src/game/game.hpp | |
parent | 70b21e90d7be4d892b7d17440d64630e7ee1a575 (diff) |
feat: add moving cursor
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r-- | src/game/game.hpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp index bc37c91..dd0d3c8 100644 --- a/src/game/game.hpp +++ b/src/game/game.hpp @@ -5,17 +5,22 @@ #include "interfaces/input.hpp" #include "interfaces/scene.hpp" +#include "engine/user/cursor.hpp" + #include <memory> -class Game : public IGame, public AutoWirable<IGame, Game, IScene, IInputHandler> +class Game : public IGame, + public AutoWirable<IGame, Game, IScene, IInputHandler, CursorController> { public: explicit Game(std::shared_ptr<IScene> scene, - std::shared_ptr<IInputHandler> input_handler); + std::shared_ptr<IInputHandler> input_handler, + std::shared_ptr<CursorController> cursor_controller); void run() override; private: std::shared_ptr<IScene> _scene; std::shared_ptr<IInputHandler> _input_handler; + std::shared_ptr<CursorController> _cursor_controller; }; |