aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/headers/RangedWeapon.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/RangedWeapon.hpp
parentAdd Actor attributes (diff)
downloadSubconscious-old-3472e0de54bbfa63517de8db7d665b732389ae85.tar.gz
Subconscious-old-3472e0de54bbfa63517de8db7d665b732389ae85.zip
Add RangedWeapon, MeleeWeapon
Diffstat (limited to 'src/main/headers/RangedWeapon.hpp')
-rw-r--r--src/main/headers/RangedWeapon.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/headers/RangedWeapon.hpp b/src/main/headers/RangedWeapon.hpp
index 57b6ea4..0cc3be1 100644
--- a/src/main/headers/RangedWeapon.hpp
+++ b/src/main/headers/RangedWeapon.hpp
@@ -1,10 +1,18 @@
#ifndef RANGEDWEAPON_HPP
#define RANGEDWEAPON_HPP
+#include "Actor.hpp"
+#include "Weapon.hpp"
+
#include <string>
class RangedWeapon : public Weapon
{
+public:
+ RangedWeapon(const std::string &name);
+ bool use(Actor &user, Actor &actor);
+ void reload(Actor &actor);
+
protected:
bool _charged;
unsigned _range;