diff options
author | mafaldo <mafaldo@heavyhammer.home> | 2018-02-12 23:43:14 +0100 |
---|---|---|
committer | mafaldo <mafaldo@heavyhammer.home> | 2018-02-12 23:43:14 +0100 |
commit | 3472e0de54bbfa63517de8db7d665b732389ae85 (patch) | |
tree | a3754a70c36dad94ea80877323c2b9798b5b5036 /src/main/headers/MeleeWeapon.hpp | |
parent | Add Actor attributes (diff) | |
download | Subconscious-old-3472e0de54bbfa63517de8db7d665b732389ae85.tar.gz Subconscious-old-3472e0de54bbfa63517de8db7d665b732389ae85.zip |
Add RangedWeapon, MeleeWeapon
Diffstat (limited to 'src/main/headers/MeleeWeapon.hpp')
-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; |