feat: finishing the exercice 02 & 03 from the module 01

This commit is contained in:
Raphael 2024-11-05 14:50:42 +01:00
parent a6ec8890cf
commit 2b197d8d05
11 changed files with 364 additions and 68 deletions

32
cpp01/ex03/HumanB.hpp Normal file
View file

@ -0,0 +1,32 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* HumanB.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/05 13:34:19 by rparodi #+# #+# */
/* Updated: 2024/11/05 14:32:31 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef HUMANB_HPP
#define HUMANB_HPP
#include "Weapon.hpp"
#include <iostream>
#include <string>
class HumanB {
public:
HumanB(std::string name);
~HumanB();
void attack();
void setWeapon(Weapon &_toGive);
private:
std::string _name;
bool _isArmed;
Weapon *_weaponGiven;
};
#endif