diff options
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/move_cursor.cpp | 15 | ||||
-rw-r--r-- | src/commands/move_cursor.hpp | 3 |
2 files changed, 2 insertions, 16 deletions
diff --git a/src/commands/move_cursor.cpp b/src/commands/move_cursor.cpp index 8dd7db7..1d2b4e8 100644 --- a/src/commands/move_cursor.cpp +++ b/src/commands/move_cursor.cpp @@ -1,16 +1,9 @@ #include "move_cursor.hpp" -#include "strings.hpp" - -#include <fmt/core.h> - MoveCursorCommand::MoveCursorCommand( const Vector2 &direction, const std::shared_ptr<ICursorController> &cursor_controller, - const std::shared_ptr<IScene> &scene, const std::shared_ptr<IWindow> &window) noexcept - : _direction(direction), - _cursor_controller(cursor_controller), - _scene(scene), - _window(window) + const std::shared_ptr<IWindow> &window) noexcept + : _direction(direction), _cursor_controller(cursor_controller), _window(window) { } @@ -30,8 +23,4 @@ void MoveCursorCommand::execute() noexcept } _cursor_controller->move_to(new_position); - - _scene->write_status(fmt::format(STATUS_BAR_COORDINATES, - fmt::arg("x", new_position.get_x()), - fmt::arg("y", new_position.get_y()))); } diff --git a/src/commands/move_cursor.hpp b/src/commands/move_cursor.hpp index 14a87e0..ff4723d 100644 --- a/src/commands/move_cursor.hpp +++ b/src/commands/move_cursor.hpp @@ -2,7 +2,6 @@ #include "interfaces/command.hpp" #include "interfaces/cursor.hpp" -#include "interfaces/scene.hpp" #include "interfaces/window.hpp" #include "engine/data/vector2.hpp" @@ -14,7 +13,6 @@ class MoveCursorCommand : public ICommand public: MoveCursorCommand(const Vector2 &direction, const std::shared_ptr<ICursorController> &cursor_controller, - const std::shared_ptr<IScene> &scene, const std::shared_ptr<IWindow> &window) noexcept; void execute() noexcept override; @@ -22,6 +20,5 @@ public: private: Vector2 _direction; const std::shared_ptr<ICursorController> &_cursor_controller; - const std::shared_ptr<IScene> &_scene; const std::shared_ptr<IWindow> &_window; }; |