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/status_manager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/game/status_manager.cpp') diff --git a/src/game/status_manager.cpp b/src/game/status_manager.cpp index 927f645..1a709d3 100644 --- a/src/game/status_manager.cpp +++ b/src/game/status_manager.cpp @@ -7,6 +7,10 @@ StatusManager::StatusManager(std::shared_ptr statusline) noexcept : _statusline(std::move(statusline)) +{ +} + +void StatusManager::initialize() noexcept { _statusline->set_section_length(StatusLineSection::A, 5U); _statusline->set_section_length(StatusLineSection::B, 15U); @@ -14,6 +18,8 @@ StatusManager::StatusManager(std::shared_ptr statusline) noexcept _statusline->set_section_length(StatusLineSection::D, 20U); _statusline->set_section_length(StatusLineSection::E, 15U); _statusline->set_section_length(StatusLineSection::F, 15U); + + _statusline->initialize_background(); } void StatusManager::set_section_title( -- cgit v1.2.3-18-g5258