You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
1.1 KiB
21 lines
1.1 KiB
3 years ago
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* HumanA.cpp :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2022/06/14 13:34:06 by narnaud #+# #+# */
|
||
|
/* Updated: 2022/06/16 10:10:29 by narnaud ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "HumanA.hpp"
|
||
|
|
||
|
HumanA::HumanA(string name, Weapon & weap ):_name(name),_weapon(weap){}
|
||
|
|
||
|
void HumanA::attack(void) const
|
||
|
{
|
||
|
std::cout << _name << " attacks with their " << _weapon.getType() << endl;
|
||
|
}
|