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/HumanA.cpp

22 lines
1.1 KiB
C++
Raw Permalink Normal View History

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* HumanA.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/04 19:41:23 by adjoly #+# #+# */
/* Updated: 2024/11/09 18:47:57 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include <iostream>
#include "HumanA.hpp"
#include "Weapon.hpp"
void HumanA::attack(void) {
std::cout << this->_name << " attacks with their " << this->_weapon.getType() << std::endl;
}
HumanA::HumanA(std::string name, Weapon &weapon) : _name(name), _weapon(weapon) { }