en cours de debug d01 ex03
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user