Files
42_INT_09_piscine_cpp/d01/ex03/HumanB.cpp
2022-02-05 19:14:56 +01:00

22 lines
301 B
C++

#include "HumanB.hpp"
HumanB::HumanB( std::string name ) {
this->_name = name;
}
HumanB::~HumanB() {}
void setWeapon( Weapon weapon ) {
this->_weapon = &weapon;
}
void HumanB::attack( void ) {
std::cout << this->_name << " attacks with their " << this->_weapon->getType() << std::endl;
}