1 2 3 4 5 6 7 8 9 10 11 12 13 14 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); }