1
0
This repository has been archived on 2024-11-25. You can view files and clone it, but cannot push or open issues or pull requests.
CPP_Module_01/ex03/HumanB.cpp

23 lines
1.1 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* HumanB.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/04 19:43:18 by adjoly #+# #+# */
/* Updated: 2024/11/04 19:50:18 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include "HumanB.hpp"
#include <iostream>
void HumanB::attack(void) {
std::cout << this->name << " attacks with their " << this->weapon.getType() << std::endl;
}
void HumanB::setWeapon(Weapon newWeapon) {
this->weapon = newWeapon;
}