-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHumanA.cpp
37 lines (30 loc) · 1.24 KB
/
HumanA.cpp
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
29
30
31
32
33
34
35
36
37
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* HumanA.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mamaurai <mamaurai@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/16 15:05:07 by mamaurai #+# #+# */
/* Updated: 2022/03/16 15:44:25 by mamaurai ### ########.fr */
/* */
/* ************************************************************************** */
#include "HumanA.hpp"
HumanA::HumanA (std::string name, Weapon &weapon) : _weapon(weapon), _name(name){
return;
}
HumanA::~HumanA (void) {
return;
}
void
HumanA::attack(void) const {
std::cout << this->_name
<< " attacks with their "
<< this->_weapon.getType()
<< std::endl;
}
void
HumanA::setWeapon(Weapon &weapon) {
this->_weapon = weapon;
return ;
}