From a5a197590e45494dc31f0d2fc8fb13194b3975c9 Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 2 Feb 2020 18:05:01 +0100 Subject: cpp01 ex05 wip, ex06 --- cpp01/ex06/HumanB.hpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 cpp01/ex06/HumanB.hpp (limited to 'cpp01/ex06/HumanB.hpp') diff --git a/cpp01/ex06/HumanB.hpp b/cpp01/ex06/HumanB.hpp new file mode 100644 index 0000000..a01c881 --- /dev/null +++ b/cpp01/ex06/HumanB.hpp @@ -0,0 +1,30 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* HumanB.hpp :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/02 16:42:54 by cacharle #+# #+# */ +/* Updated: 2020/02/02 16:54:18 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef HUMANB_HPP +# define HUMANB_HPP + +# include +# include "Weapon.hpp" + +class HumanB +{ + private: + std::string name; + Weapon weapon; + public: + HumanB(std::string name); + void attack(); + void setWeapon(Weapon weapon); +}; + +#endif -- cgit