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