feat: finishing the exercice 02 & 03 from the module 01
This commit is contained in:
parent
a6ec8890cf
commit
2b197d8d05
11 changed files with 364 additions and 68 deletions
30
cpp01/ex03/HumanA.hpp
Normal file
30
cpp01/ex03/HumanA.hpp
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* HumanA.hpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/11/05 13:34:19 by rparodi #+# #+# */
|
||||
/* Updated: 2024/11/05 14:23:03 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef HUMANA_HPP
|
||||
#define HUMANA_HPP
|
||||
|
||||
#include "Weapon.hpp"
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
class HumanA {
|
||||
public:
|
||||
HumanA(std::string name, Weapon &toGive);
|
||||
~HumanA();
|
||||
void attack();
|
||||
private:
|
||||
std::string _name;
|
||||
Weapon *_weapon;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue