From 3472e0de54bbfa63517de8db7d665b732389ae85 Mon Sep 17 00:00:00 2001 From: mafaldo Date: Mon, 12 Feb 2018 23:43:14 +0100 Subject: Add RangedWeapon, MeleeWeapon --- src/main/headers/MeleeWeapon.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/main/headers/MeleeWeapon.hpp') 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 + 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; -- cgit v1.2.1