From 3472e0de54bbfa63517de8db7d665b732389ae85 Mon Sep 17 00:00:00 2001 From: mafaldo Date: Mon, 12 Feb 2018 23:43:14 +0100 Subject: Add RangedWeapon, MeleeWeapon --- src/main/cpp/MeleeWeapon.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/main/cpp/MeleeWeapon.cpp (limited to 'src/main/cpp/MeleeWeapon.cpp') 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 + +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); +} -- cgit v1.2.1