/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* HumanB.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: fgras-ca +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/12/24 17:48:26 by fgras-ca #+# #+# */ /* Updated: 2023/12/24 17:54:54 by fgras-ca ### ########.fr */ /* */ /* ************************************************************************** */ #include "HumanB.hpp" HumanB::HumanB(std::string name) : _name(name) {} void HumanB::attack(void) { const std::string type = this->_weapon->getType(); std::cout << this->_name << " attacks with their " << type << std::endl; } void HumanB::setWeapon(Weapon &weapon) { this->_weapon = &weapon; } HumanB::~HumanB(void) {}