diff options
Diffstat (limited to 'src/commands/move_cursor.hpp')
-rw-r--r-- | src/commands/move_cursor.hpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/commands/move_cursor.hpp b/src/commands/move_cursor.hpp new file mode 100644 index 0000000..14a87e0 --- /dev/null +++ b/src/commands/move_cursor.hpp @@ -0,0 +1,27 @@ +#pragma once + +#include "interfaces/command.hpp" +#include "interfaces/cursor.hpp" +#include "interfaces/scene.hpp" +#include "interfaces/window.hpp" + +#include "engine/data/vector2.hpp" + +#include <memory> + +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; + +private: + Vector2 _direction; + const std::shared_ptr<ICursorController> &_cursor_controller; + const std::shared_ptr<IScene> &_scene; + const std::shared_ptr<IWindow> &_window; +}; |