aboutsummaryrefslogtreecommitdiff
path: root/src/game/status_updater.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-04-24 17:13:52 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:58 +0200
commitdb6edcd473a684420e9a7611b24462df21165c1b (patch)
tree9646bdb4f5f6e339a0a01873b44e0b185476ce56 /src/game/status_updater.cpp
parentb36d072ad7a7b9c6e30fcb25d6bbb001a8393468 (diff)
style: improve function and brace styling
Diffstat (limited to 'src/game/status_updater.cpp')
-rw-r--r--src/game/status_updater.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/game/status_updater.cpp b/src/game/status_updater.cpp
index 18c535e..1cfd1d2 100644
--- a/src/game/status_updater.cpp
+++ b/src/game/status_updater.cpp
@@ -5,7 +5,8 @@
StatusUpdater::StatusUpdater(
std::shared_ptr<IStatusLine> statusline,
- std::shared_ptr<IGenerationTracker> generation_tracker) noexcept
+ std::shared_ptr<IGenerationTracker> generation_tracker
+) noexcept
: _statusline(std::move(statusline)),
_generation_tracker(std::move(generation_tracker))
{
@@ -15,11 +16,15 @@ void StatusUpdater::update(const Vector2 &context) noexcept
{
_statusline->set_status(
StatusLineSection::A,
- fmt::format("X: {} Y {}", context.get_x(), context.get_y()));
+ fmt::format("X: {} Y {}", context.get_x(), context.get_y())
+ );
_statusline->set_status(
StatusLineSection::B,
- fmt::format("Paused: {} Generation: {}",
- _generation_tracker->get_is_paused() ? "yes" : "no",
- _generation_tracker->get_current_generation()));
+ fmt::format(
+ "Paused: {} Generation: {}",
+ _generation_tracker->get_is_paused() ? "yes" : "no",
+ _generation_tracker->get_current_generation()
+ )
+ );
}