/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* HumanA.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: erey-bet +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/04/20 17:02:21 by erey-bet #+# #+# */ /* Updated: 2023/04/20 17:23:20 by erey-bet ### ########.fr */ /* */ /* ************************************************************************** */ #include "HumanA.hpp" HumanA::HumanA(std::string name, Weapon &weapon): weapon(weapon) { this->name = name; } void HumanA::attack(void) { std::cout << name + " attacks with their " + weapon.getType() << std::endl; }