24 lines
1.1 KiB
C++
24 lines
1.1 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* HumanA.cpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2025/09/06 02:27:27 by aortigos #+# #+# */
|
|
/* Updated: 2025/09/06 02:28:09 by aortigos ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "HumanA.hpp"
|
|
|
|
HumanA::HumanA(const std::string &name, Weapon &weapon)
|
|
: name(name), weapon(weapon) {}
|
|
|
|
void HumanA::attack() const
|
|
{
|
|
std::cout << this->name << " attacks with their "
|
|
<< this->weapon.getType()
|
|
<< std::endl;
|
|
}
|