cpp/cpp01/ex03/HumanA.cpp
Alexandre POMMIER 4d9723ab8a cpp05
2022-07-23 16:26:15 +02:00

27 lines
1.1 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* HumanA.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: apommier <apommier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/10 21:20:34 by apommier #+# #+# */
/* Updated: 2022/07/23 12:37:20 by apommier ### ########.fr */
/* */
/* ************************************************************************** */
#include "HumanA.hpp"
HumanA::HumanA(const std::string name, Weapon &Weapon): _Weapon(Weapon)
{
this->_name = name;
}
HumanA::~HumanA(void)
{
}
void HumanA::attack(void)
{
std::cout << this->_name << " attacks with their " << this->_Weapon.getType() << std::endl;
}