blob: e08363c98eac78042706c9f6ea3460e73e6f044d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* HumanB.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/02 16:46:02 by cacharle #+# #+# */
/* Updated: 2020/02/02 16:54:33 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#include "HumanB.hpp"
HumanB::HumanB(std::string name)
{
this->name = name;
}
void HumanB::attack()
{
std::cout << name << " attack with his " << weapon.getType();
}
void HumanB::setWeapon(Weapon weapon)
{
this->weapon = weapon;
}
|