/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* HumanB.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: dkaiser HumanB::HumanB(const std::string &name) :name(name) {} void HumanB::attack(void) const { std::cout << name << " attacks with their "; std::cout << weapon->getType() << std::endl; } void HumanB::setWeapon(Weapon &weapon) { this->weapon = &weapon; }