aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/cpp/Stick.cpp
diff options
context:
space:
mode:
authormafaldo <mafaldo@heavyhammer.home>2018-02-17 00:29:32 +0100
committermafaldo <mafaldo@heavyhammer.home>2018-02-17 00:29:32 +0100
commitaf3e76c5ee367ceffb78fa4a8ffc0eadf90e5de3 (patch)
tree24dcdaa94c20211974fca97e41647ff0dec31923 /src/main/cpp/Stick.cpp
parentAdd cpack directive and update README (diff)
downloadSubconscious-old-af3e76c5ee367ceffb78fa4a8ffc0eadf90e5de3.tar.gz
Subconscious-old-af3e76c5ee367ceffb78fa4a8ffc0eadf90e5de3.zip
add Item type, use for MeleeWeapon
Diffstat (limited to '')
-rw-r--r--src/main/cpp/Stick.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/cpp/Stick.cpp b/src/main/cpp/Stick.cpp
new file mode 100644
index 0000000..bc67ccb
--- /dev/null
+++ b/src/main/cpp/Stick.cpp
@@ -0,0 +1,11 @@
+#include "Stick.hpp"
+
+Stick::Stick(const std::string &name, int maxUses) : Item(Item::Type::STICK, name), _maxUses(maxUses)
+{
+ _remainingUses = _maxUses;
+}
+
+bool Stick::use(Actor &user, Actor &actor)
+{
+
+}