diff options
Diffstat (limited to 'src/main/cpp/MeleeWeapon.cpp')
-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); +} |