diff options
author | mafaldo <mafaldo@heavyhammer.home> | 2018-02-17 00:29:32 +0100 |
---|---|---|
committer | mafaldo <mafaldo@heavyhammer.home> | 2018-02-17 00:29:32 +0100 |
commit | af3e76c5ee367ceffb78fa4a8ffc0eadf90e5de3 (patch) | |
tree | 24dcdaa94c20211974fca97e41647ff0dec31923 /src/main/cpp/Stick.cpp | |
parent | Add cpack directive and update README (diff) | |
download | Subconscious-old-af3e76c5ee367ceffb78fa4a8ffc0eadf90e5de3.tar.gz Subconscious-old-af3e76c5ee367ceffb78fa4a8ffc0eadf90e5de3.zip |
add Item type, use for MeleeWeapon
Diffstat (limited to '')
-rw-r--r-- | src/main/cpp/Stick.cpp | 11 |
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) +{ + +} |