From fb080f6fb911b1831c176a06259e384772541dd5 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 2 May 2022 22:36:21 +0200 Subject: refactor: seperate statusline related concerns --- src/game/game.hpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/game/game.hpp') 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 @@ -19,7 +20,9 @@ public: std::shared_ptr cursor_controller, std::shared_ptr statusline, std::shared_ptr generation_tracker, - std::shared_ptr status_updater + std::shared_ptr status_manager, + IStatusLineSubscriberAdapterFactory + vector2_statusline_subscriber_adapter_factory ) noexcept; void on_start() noexcept override; @@ -37,5 +40,7 @@ private: std::shared_ptr _cursor_controller; std::shared_ptr _statusline; std::shared_ptr _generation_tracker; - std::shared_ptr _status_updater; + std::shared_ptr _status_manager; + IStatusLineSubscriberAdapterFactory + _vector2_statusline_subscriber_adapter_factory; }; -- cgit v1.2.3-18-g5258