From af3e76c5ee367ceffb78fa4a8ffc0eadf90e5de3 Mon Sep 17 00:00:00 2001 From: mafaldo Date: Sat, 17 Feb 2018 00:29:32 +0100 Subject: add Item type, use for MeleeWeapon --- src/main/headers/Stick.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main/headers/Stick.hpp') diff --git a/src/main/headers/Stick.hpp b/src/main/headers/Stick.hpp index 4ed2b45..724e36d 100644 --- a/src/main/headers/Stick.hpp +++ b/src/main/headers/Stick.hpp @@ -5,6 +5,13 @@ class Stick : public Item { +public: + Stick(const std::string &name); + bool use(Actor &user, Actor &actor); + +protected: + const int _maxUses; + int _remainingUses; }; -- cgit v1.2.1