diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-08 17:00:18 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:55 +0200 |
commit | e0eaff89b5f3f289bf5d560ea64b969c90d32d18 (patch) | |
tree | a6e91afcf89abc91629f2bee545ccadacf9bb673 /src/interfaces/cursor.hpp | |
parent | 3359b00178357cb68d14e807c6deef3182532307 (diff) |
refactor: add cursor controller interface
Diffstat (limited to 'src/interfaces/cursor.hpp')
-rw-r--r-- | src/interfaces/cursor.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/interfaces/cursor.hpp b/src/interfaces/cursor.hpp new file mode 100644 index 0000000..adab524 --- /dev/null +++ b/src/interfaces/cursor.hpp @@ -0,0 +1,17 @@ +#pragma once + +#include "engine/data/vector2.hpp" + +class ICursorController +{ +public: + 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(); + + static void show(); +}; |