43 this->weapon = &weapon;
54 std::cout << this->name <<
" attacks with their ";
Declares the HumanB class.
basic_ostream< _CharT, _Traits > & endl(basic_ostream< _CharT, _Traits > &__os)
HumanB(std::string name)
Constructor for the HumanB class.
void setWeapon(Weapon &weapon)
Sets the weapon for the HumanB.
void attack() const
Makes the HumanB attack.
~HumanB()
Destructor for the HumanB class.
Represents a Weapon with a specific type.
const std::string & getType() const
Gets the type of the weapon.