aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/headers/Weapon.hpp
diff options
context:
space:
mode:
authormafaldo <mafaldo@heavyhammer.home>2018-02-12 23:43:14 +0100
committermafaldo <mafaldo@heavyhammer.home>2018-02-12 23:43:14 +0100
commit3472e0de54bbfa63517de8db7d665b732389ae85 (patch)
treea3754a70c36dad94ea80877323c2b9798b5b5036 /src/main/headers/Weapon.hpp
parentAdd Actor attributes (diff)
downloadSubconscious-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.hpp4
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