From 3f9004b598fc8006576db9b8d2ae4e080101101b Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 8 Jun 2022 16:06:03 +0200 Subject: refactor: give game responsibility of statusline --- src/game/game.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/game/game.hpp') diff --git a/src/game/game.hpp b/src/game/game.hpp index d629400..8363c4d 100644 --- a/src/game/game.hpp +++ b/src/game/game.hpp @@ -8,6 +8,7 @@ #include "interfaces/matrix.hpp" #include "interfaces/scene.hpp" #include "interfaces/status_manager.hpp" +#include "interfaces/statusline.hpp" #include "engine/data/vector2.hpp" @@ -25,6 +26,7 @@ class Game : public IGame { public: Game( + IStatusLineFactory statusline_factory, std::shared_ptr scene, std::shared_ptr cursor_controller, std::shared_ptr generation_tracker, @@ -39,6 +41,8 @@ public: void on_exit() const noexcept override; private: + IStatusLineFactory _statusline_factory; + std::shared_ptr _scene; std::shared_ptr _cursor_controller; std::shared_ptr _generation_tracker; -- cgit v1.2.3-18-g5258