diff options
author | HampusM <hampus@hampusmat.com> | 2022-05-02 22:36:21 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:58 +0200 |
commit | fb080f6fb911b1831c176a06259e384772541dd5 (patch) | |
tree | e18140e700cd974f84a5630f41fcb0b496b7e772 /src/game/game.hpp | |
parent | 40d02748924aa7c48b04cf948204d8dacdfbbc74 (diff) |
refactor: seperate statusline related concerns
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r-- | src/game/game.hpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp index 9f08158..9689215 100644 --- a/src/game/game.hpp +++ b/src/game/game.hpp @@ -4,8 +4,9 @@ #include "interfaces/game.hpp" #include "interfaces/generation_tracker.hpp" #include "interfaces/scene.hpp" -#include "interfaces/status_updater.hpp" +#include "interfaces/status_manager.hpp" #include "interfaces/statusline.hpp" +#include "interfaces/statusline_subscriber_adapter.hpp" #include "interfaces/window.hpp" #include <memory> @@ -19,7 +20,9 @@ public: std::shared_ptr<ICursorController> cursor_controller, std::shared_ptr<IStatusLine> statusline, std::shared_ptr<IGenerationTracker> generation_tracker, - std::shared_ptr<IStatusUpdater> status_updater + std::shared_ptr<IStatusManager> status_manager, + IStatusLineSubscriberAdapterFactory<Vector2> + vector2_statusline_subscriber_adapter_factory ) noexcept; void on_start() noexcept override; @@ -37,5 +40,7 @@ private: std::shared_ptr<ICursorController> _cursor_controller; std::shared_ptr<IStatusLine> _statusline; std::shared_ptr<IGenerationTracker> _generation_tracker; - std::shared_ptr<IStatusUpdater> _status_updater; + std::shared_ptr<IStatusManager> _status_manager; + IStatusLineSubscriberAdapterFactory<Vector2> + _vector2_statusline_subscriber_adapter_factory; }; |