aboutsummaryrefslogtreecommitdiff
path: root/src/game/statusline.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/statusline.hpp')
-rw-r--r--src/game/statusline.hpp50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/game/statusline.hpp b/src/game/statusline.hpp
deleted file mode 100644
index 181090d..0000000
--- a/src/game/statusline.hpp
+++ /dev/null
@@ -1,50 +0,0 @@
-#pragma once
-
-#include "interfaces/cursor.hpp"
-#include "interfaces/statusline.hpp"
-#include "interfaces/window.hpp"
-
-#include "engine/data/vector2.hpp"
-
-#include <fmt/core.h>
-
-#include <memory>
-#include <string_view>
-#include <unordered_map>
-
-constexpr uint32_t STATUSBAR_COLOR = 0x1A1A1AU;
-
-class StatusLine : public IStatusLine
-{
-public:
- StatusLine(
- std::shared_ptr<ICursorController> cursor_controller,
- std::shared_ptr<IWindow> window
- ) noexcept;
-
- void initialize_background() noexcept override;
-
- void set_status(
- const StatusLineSection &section,
- const std::string_view &status,
- std::size_t start
- ) noexcept override;
-
- void set_section_length(const StatusLineSection &section, uint32_t length) noexcept
- override;
-
-private:
- std::unordered_map<StatusLineSection, uint32_t> _sections_lengths;
-
- std::shared_ptr<ICursorController> _cursor_controller;
- std::shared_ptr<IWindow> _window;
-
- auto _move_to_statusline(int32_t x) noexcept -> Vector2;
-
- void _move_back(Vector2 previous_position) noexcept;
-
- [[nodiscard]] auto _get_section_start_x(const StatusLineSection &section
- ) const noexcept -> int32_t;
-
- void _clear_section(const StatusLineSection &section, std::size_t start) noexcept;
-};