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/cpp/MeleeWeapon.cpp | |
parent | Add Actor attributes (diff) | |
download | Subconscious-old-3472e0de54bbfa63517de8db7d665b732389ae85.tar.gz Subconscious-old-3472e0de54bbfa63517de8db7d665b732389ae85.zip |
Add RangedWeapon, MeleeWeapon
Diffstat (limited to '')
-rw-r--r-- | src/main/cpp/MeleeWeapon.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/cpp/MeleeWeapon.cpp b/src/main/cpp/MeleeWeapon.cpp new file mode 100644 index 0000000..92c7632 --- /dev/null +++ b/src/main/cpp/MeleeWeapon.cpp @@ -0,0 +1,15 @@ +#include "MeleeWeapon.hpp" +#include "Actor.hpp" + +#include <string> + +MeleeWeapon::MeleeWeapon(Type t, const std::string &name) +: Weapon(name), type(t) +{ +} + +bool MeleeWeapon::use(Actor &user, Actor &actor) +{ + //TODO implement attack probability + //actor.damage(_damage); +} |