mirror of
https://github.com/Ladebeze66/cpp-partie-1.git
synced 2025-12-16 05:58:04 +01:00
23 lines
1.2 KiB
C++
23 lines
1.2 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* HumanA.cpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: fgras-ca <fgras-ca@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/12/24 17:25:06 by fgras-ca #+# #+# */
|
|
/* Updated: 2023/12/24 17:47:18 by fgras-ca ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "HumanA.hpp"
|
|
|
|
HumanA::HumanA(std::string name, Weapon &weapon) : _name(name), _weapon(weapon) {}
|
|
|
|
void HumanA::attack(void)
|
|
{
|
|
const std::string type = this->_weapon.getType();
|
|
std::cout << this->_name << " attack with their " << type << std::endl;
|
|
}
|
|
|
|
HumanA::~HumanA(void) {} |