diff options
Diffstat (limited to '')
-rw-r--r-- | src/main/headers/MeleeWeapon.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/headers/MeleeWeapon.hpp b/src/main/headers/MeleeWeapon.hpp index e031333..b98d027 100644 --- a/src/main/headers/MeleeWeapon.hpp +++ b/src/main/headers/MeleeWeapon.hpp @@ -4,6 +4,8 @@ #include "Weapon.hpp" #include "Actor.hpp" +#include <string> + class MeleeWeapon : public Weapon { @@ -12,7 +14,10 @@ public: SWORD, AXE, LANCE }; - virtual bool use(Actor &actor); + const Type type; + + MeleeWeapon(Type t, const std::string &name); + bool use(Actor &user, Actor &actor); protected: bool _throwable; |