22 lines
1.1 KiB
C++
22 lines
1.1 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* HumanA.cpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/04/20 17:02:21 by erey-bet #+# #+# */
|
|
/* Updated: 2023/04/20 17:23:20 by erey-bet ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "HumanA.hpp"
|
|
|
|
HumanA::HumanA(std::string name, Weapon &weapon): weapon(weapon) {
|
|
this->name = name;
|
|
}
|
|
|
|
void HumanA::attack(void) {
|
|
std::cout << name + " attacks with their " + weapon.getType() << std::endl;
|
|
}
|