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