aboutsummaryrefslogtreecommitdiff
path: root/src/game/status_manager.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-05-22 17:13:24 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:59 +0200
commit7041e81abbdae6b895bda149e5369e0d52dce6ee (patch)
tree1d87cd494a7677d31db4f7e01a5c8b4a0cd525d3 /src/game/status_manager.cpp
parent7de921836587cdc359c2c4b84ed6446ada16c008 (diff)
refactor: remove statusline as game dependency
Diffstat (limited to 'src/game/status_manager.cpp')
-rw-r--r--src/game/status_manager.cpp6
1 files changed, 6 insertions, 0 deletions
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
@@ -8,12 +8,18 @@ StatusManager::StatusManager(std::shared_ptr<IStatusLine> statusline) noexcept
: _statusline(std::move(statusline))
{
+}
+
+void StatusManager::initialize() noexcept
+{
_statusline->set_section_length(StatusLineSection::A, 5U);
_statusline->set_section_length(StatusLineSection::B, 15U);
_statusline->set_section_length(StatusLineSection::C, 15U);
_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(