/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* HumanB.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/02 16:46:02 by cacharle #+# #+# */ /* Updated: 2020/02/02 16:54:33 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include "HumanB.hpp" HumanB::HumanB(std::string name) { this->name = name; } void HumanB::attack() { std::cout << name << " attack with his " << weapon.getType(); } void HumanB::setWeapon(Weapon weapon) { this->weapon = weapon; }