aboutsummaryrefslogtreecommitdiff
path: root/src/commands/move_cursor.hpp
blob: 14a87e0423bd341bb3b1ac0f72003f93121860ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
};