-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHumanA.cpp
More file actions
25 lines (20 loc) · 1.14 KB
/
HumanA.cpp
File metadata and controls
25 lines (20 loc) · 1.14 KB
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* HumanA.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dpoveda- <me@izenynn.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/02/15 11:16:56 by dpoveda- #+# #+# */
/* Updated: 2022/02/15 11:21:55 by dpoveda- ### ########.fr */
/* */
/* ************************************************************************** */
#include "HumanA.hpp"
#include <iostream>
HumanA::HumanA(std::string name, Weapon &weapon)
: _name(name)
, _weapon(weapon) {}
HumanA::~HumanA() {}
void HumanA::attack() const {
std::cout << this->_name << " attacks with his " << this->_weapon.getType() << std::endl;
}