en cours de debug d01 ex03

This commit is contained in:
hugogogo
2022-02-06 10:50:35 +01:00
parent c1990815e2
commit 3708a135be
5 changed files with 13 additions and 5 deletions

View File

@@ -3,13 +3,18 @@
HumanA::HumanA( std::string name, Weapon weapon ) {
this->_name = name;
this->_weapon = &weapon ;
this->_weapon = &weapon;
return;
}
HumanA::~HumanA() {}
HumanA::~HumanA() {return;}
void HumanA::attack( void ) {
std::cout << this->_name << " attacks with their " << this->_weapon->getType() << std::endl;
std::cout << this->_name << " attacks with their ";
std::cout << this->_weapon->getType() << std::endl;
return;
}