aboutsummaryrefslogtreecommitdiff
path: root/examples/basic/src/enemy.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/basic/src/enemy.hpp')
-rw-r--r--examples/basic/src/enemy.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/basic/src/enemy.hpp b/examples/basic/src/enemy.hpp
new file mode 100644
index 0000000..ebf00c4
--- /dev/null
+++ b/examples/basic/src/enemy.hpp
@@ -0,0 +1,16 @@
+#pragma once
+
+#include "interfaces/enemy.hpp"
+
+#include <yacppdic/auto_wirable.hpp>
+
+class Enemy : public IEnemy, public yacppdic::AutoWirable<IEnemy, Enemy>
+{
+public:
+ int get_health() const noexcept override;
+
+ void do_damage(int damage) noexcept override;
+
+private:
+ int _health = 120;
+};