aboutsummaryrefslogtreecommitdiff
path: root/examples/basic/src/sword.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/basic/src/sword.hpp')
-rw-r--r--examples/basic/src/sword.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/basic/src/sword.hpp b/examples/basic/src/sword.hpp
new file mode 100644
index 0000000..25695b7
--- /dev/null
+++ b/examples/basic/src/sword.hpp
@@ -0,0 +1,14 @@
+#pragma once
+
+#include "interfaces/weapon.hpp"
+
+#include <yacppdic/auto_wirable.hpp>
+
+class Sword : public IWeapon, public yacppdic::AutoWirable<IWeapon, Sword>
+{
+public:
+ int get_strength() const noexcept override;
+
+private:
+ int _strength = 30;
+};