/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* HumanA.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/11/04 19:41:23 by adjoly #+# #+# */ /* Updated: 2024/11/09 18:47:57 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ #include #include "HumanA.hpp" #include "Weapon.hpp" void HumanA::attack(void) { std::cout << this->_name << " attacks with their " << this->_weapon.getType() << std::endl; } HumanA::HumanA(std::string name, Weapon &weapon) : _name(name), _weapon(weapon) { }