| 123456789101112131415161718192021222324252627 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* HumanA.class.cpp :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@gmail.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2025/07/15 15:54:21 by bchanot #+# #+# */
- /* Updated: 2025/07/15 18:13:42 by bchanot ### ########.fr */
- /* */
- /* ************************************************************************** */
- #include "HumanA.class.hpp"
- #include "Weapon.class.hpp"
- #include <iostream>
- HumanA::HumanA(std::string name, Weapon &weapon) : _name(name), _weapon(weapon) {
- return ;
- }
- HumanA::~HumanA(void) {
- return ;
- }
- void HumanA::attack(void) const {
- std::cout << this->_name << " attacks with their " << this->_weapon.getType() << std::endl;
- }
|