Files
42_INT_09_piscine_cpp/d01/ex03/HumanA.cpp
2022-02-06 10:50:35 +01:00

21 lines
315 B
C++

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