aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/cursor.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-10 19:12:31 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:55 +0200
commit38f14606c78c119d452f302f17329455e29a9a6f (patch)
tree03f6dfd9d3576e87260f7cb3bc436ad076b629c5 /src/interfaces/cursor.hpp
parent09848ad31af6a1c70d64fccee711e231afb5a77f (diff)
refactor: rename game initializer & move input config
Diffstat (limited to 'src/interfaces/cursor.hpp')
-rw-r--r--src/interfaces/cursor.hpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/interfaces/cursor.hpp b/src/interfaces/cursor.hpp
index adab524..77c5096 100644
--- a/src/interfaces/cursor.hpp
+++ b/src/interfaces/cursor.hpp
@@ -2,16 +2,22 @@
#include "engine/data/vector2.hpp"
+#include <memory>
+
class ICursorController
{
public:
+ virtual ~ICursorController() noexcept = default;
+
virtual void move(const Vector2 &direction, const uint32_t &amount) noexcept = 0;
virtual void move_to(const Vector2 &position) noexcept = 0;
[[nodiscard]] virtual Vector2 where() const noexcept = 0;
- static void hide();
+ virtual void ensure_position() noexcept = 0;
+
+ static void hide() noexcept;
- static void show();
+ static void show() noexcept;
};