diff options
Diffstat (limited to 'src/game/status_updater.hpp')
-rw-r--r-- | src/game/status_updater.hpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/game/status_updater.hpp b/src/game/status_updater.hpp new file mode 100644 index 0000000..3b76d3b --- /dev/null +++ b/src/game/status_updater.hpp @@ -0,0 +1,24 @@ +#pragma once + +#include "interfaces/generation_tracker.hpp" +#include "interfaces/status_updater.hpp" +#include "interfaces/statusline.hpp" +#include "interfaces/subscriber.hpp" + +#include "engine/data/vector2.hpp" + +#include <memory> + +class StatusUpdater : public IStatusUpdater +{ +public: + explicit StatusUpdater( + std::shared_ptr<IStatusLine> statusline, + std::shared_ptr<IGenerationTracker> generation_tracker) noexcept; + + void update(const Vector2 &context) noexcept override; + +private: + std::shared_ptr<IStatusLine> _statusline; + std::shared_ptr<IGenerationTracker> _generation_tracker; +}; |