aboutsummaryrefslogtreecommitdiff
path: root/examples/basic/src/interfaces/weapon.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/basic/src/interfaces/weapon.hpp')
-rw-r--r--examples/basic/src/interfaces/weapon.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/basic/src/interfaces/weapon.hpp b/examples/basic/src/interfaces/weapon.hpp
new file mode 100644
index 0000000..7404115
--- /dev/null
+++ b/examples/basic/src/interfaces/weapon.hpp
@@ -0,0 +1,9 @@
+#pragma once
+
+class IWeapon
+{
+public:
+ virtual ~IWeapon() noexcept = default;
+
+ virtual int get_strength() const noexcept = 0;
+};