HumanA.cpp
1 /* ************************************************************************** */ 2 /* */ 3 /* ::: :::::::: */ 4 /* HumanA.cpp :+: :+: :+: */ 5 /* +:+ +:+ +:+ */ 6 /* By: gychoi <gychoi@student.42seoul.kr> +#+ +:+ +#+ */ 7 /* +#+#+#+#+#+ +#+ */ 8 /* Created: 2023/07/25 21:19:35 by gychoi #+# #+# */ 9 /* Updated: 2023/07/25 22:23:41 by gychoi ### ########.fr */ 10 /* */ 11 /* ************************************************************************** */ 12 13 #include "HumanA.hpp" 14 15 HumanA::HumanA(const std::string& name, const Weapon& weapon) : _weapon(weapon), _name(name) {} 16 17 void HumanA::attack(void) 18 { 19 std::cout << _name << " attacks with their " << _weapon.getType() << std::endl; 20 }