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/Weapon.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/Weapon.hpp')
-rw-r--r-- | src/main/headers/Weapon.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/headers/Weapon.hpp b/src/main/headers/Weapon.hpp index ef9d3d5..4c134ea 100644 --- a/src/main/headers/Weapon.hpp +++ b/src/main/headers/Weapon.hpp @@ -4,11 +4,15 @@ #include "Item.hpp" #include "Actor.hpp" +#include <string> + class Weapon : public Item { protected: unsigned _damage; unsigned _requiredLevel; + + Weapon(const std::string &name) : Item(name) {} }; #endif |