From 7041e81abbdae6b895bda149e5369e0d52dce6ee Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 22 May 2022 17:13:24 +0200 Subject: refactor: remove statusline as game dependency --- src/game/game.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/game/game.cpp') diff --git a/src/game/game.cpp b/src/game/game.cpp index d642f7c..18db133 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -13,14 +13,12 @@ Game::Game( std::shared_ptr scene, std::shared_ptr cursor_controller, - std::shared_ptr statusline, std::shared_ptr generation_tracker, std::shared_ptr status_manager, IStatusLineSubscriberAdapterFactory vector2_statusline_subscriber_adapter_factory) noexcept : _scene(std::move(scene)), _cursor_controller(std::move(cursor_controller)), - _statusline(std::move(statusline)), _generation_tracker(std::move(generation_tracker)), _status_manager(std::move(status_manager)), _vector2_statusline_subscriber_adapter_factory( @@ -30,7 +28,7 @@ Game::Game( void Game::on_start() noexcept { - _statusline->initialize_background(); + _status_manager->initialize(); _status_manager->set_section_title(StatusLineSection::A, ""); _status_manager->set_section_title(StatusLineSection::B, "X: "); -- cgit v1.2.3-18-g5258