#include "RangedWeapon.hpp" #include "Actor.hpp" #include #include #include RangedWeapon::RangedWeapon(const std::string &name) : Weapon(name) { } bool RangedWeapon::use(Actor &user, Actor &actor) { //TODO implement attack probability if (_charged) { actor.damage(user.attack() + _damage - actor.defence()); _charged = false; } } void RangedWeapon::reload(Actor &actor) { //std::vector bullet = actor.bullet(); }