aboutsummaryrefslogtreecommitdiff
path: root/examples/basic/src/interfaces/enemy.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/basic/src/interfaces/enemy.hpp')
-rw-r--r--examples/basic/src/interfaces/enemy.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/basic/src/interfaces/enemy.hpp b/examples/basic/src/interfaces/enemy.hpp
new file mode 100644
index 0000000..45e004f
--- /dev/null
+++ b/examples/basic/src/interfaces/enemy.hpp
@@ -0,0 +1,11 @@
+#pragma once
+
+class IEnemy
+{
+public:
+ virtual ~IEnemy() noexcept = default;
+
+ virtual int get_health() const noexcept = 0;
+
+ virtual void do_damage(int damage) noexcept = 0;
+};