/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* HumanB.class.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: bchanot +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/07/15 15:54:21 by bchanot #+# #+# */ /* Updated: 2025/07/15 18:12:20 by bchanot ### ########.fr */ /* */ /* ************************************************************************** */ #include "HumanB.class.hpp" #include HumanB::HumanB(std::string name) : _name(name) { return ; } HumanB::~HumanB(void) { return ; } void HumanB::attack(void) const { std::cout << this->_name << " attacks with their " << this->_weapon->getType() << std::endl; } void HumanB::setWeapon(Weapon &weapon) { this->_weapon = &weapon; return; }