diff options
author | HampusM <hampus@hampusmat.com> | 2022-06-08 16:06:03 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:57:01 +0200 |
commit | 3f9004b598fc8006576db9b8d2ae4e080101101b (patch) | |
tree | 97108db2a08253417139bd76741add2dd126f58d /src/game/game.hpp | |
parent | 2d9661790db30eb169d07d36b485943c598253b9 (diff) |
refactor: give game responsibility of statusline
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r-- | src/game/game.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<IScene> scene, std::shared_ptr<ICursorController> cursor_controller, std::shared_ptr<IGenerationTracker> generation_tracker, @@ -39,6 +41,8 @@ public: void on_exit() const noexcept override; private: + IStatusLineFactory _statusline_factory; + std::shared_ptr<IScene> _scene; std::shared_ptr<ICursorController> _cursor_controller; std::shared_ptr<IGenerationTracker> _generation_tracker; |