cpp-partie-1/cpp01/ex03/HumanA.cpp
2024-02-20 15:35:19 +01:00

23 lines
1.2 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* HumanA.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: fgras-ca <fgras-ca@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/12/24 17:25:06 by fgras-ca #+# #+# */
/* Updated: 2023/12/24 17:47:18 by fgras-ca ### ########.fr */
/* */
/* ************************************************************************** */
#include "HumanA.hpp"
HumanA::HumanA(std::string name, Weapon &weapon) : _name(name), _weapon(weapon) {}
void HumanA::attack(void)
{
const std::string type = this->_weapon.getType();
std::cout << this->_name << " attack with their " << type << std::endl;
}
HumanA::~HumanA(void) {}