aboutsummaryrefslogtreecommitdiff
path: root/src/game/status_manager.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-06-08 16:06:03 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:57:01 +0200
commit3f9004b598fc8006576db9b8d2ae4e080101101b (patch)
tree97108db2a08253417139bd76741add2dd126f58d /src/game/status_manager.cpp
parent2d9661790db30eb169d07d36b485943c598253b9 (diff)
refactor: give game responsibility of statusline
Diffstat (limited to 'src/game/status_manager.cpp')
-rw-r--r--src/game/status_manager.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/game/status_manager.cpp b/src/game/status_manager.cpp
index c7d80e9..b4496ba 100644
--- a/src/game/status_manager.cpp
+++ b/src/game/status_manager.cpp
@@ -4,14 +4,10 @@
#include <utility>
-StatusManager::StatusManager(std::shared_ptr<IStatusLine> statusline) noexcept
- : _statusline(std::move(statusline))
-
+void StatusManager::bind(const std::shared_ptr<IStatusLine> &statusline) noexcept
{
-}
+ _statusline = statusline;
-void StatusManager::initialize() noexcept
-{
_statusline->set_section_length(StatusLineSection::A, 5);
_statusline->set_section_length(StatusLineSection::B, 15);
_statusline->set_section_length(StatusLineSection::C, 15);
@@ -46,7 +42,3 @@ void StatusManager::set_section_body(
_statusline->set_status(section, body, section_title_length + 1);
}
-auto StatusManager::get_statusline() const noexcept -> std::shared_ptr<IStatusLine>
-{
- return _statusline;
-}