aboutsummaryrefslogtreecommitdiff
path: root/cpp01/ex06/HumanB.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp01/ex06/HumanB.hpp')
-rw-r--r--cpp01/ex06/HumanB.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/cpp01/ex06/HumanB.hpp b/cpp01/ex06/HumanB.hpp
index a01c881..269f4fc 100644
--- a/cpp01/ex06/HumanB.hpp
+++ b/cpp01/ex06/HumanB.hpp
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/02 16:42:54 by cacharle #+# #+# */
-/* Updated: 2020/02/02 16:54:18 by cacharle ### ########.fr */
+/* Updated: 2020/04/13 10:23:31 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -18,13 +18,13 @@
class HumanB
{
- private:
- std::string name;
- Weapon weapon;
- public:
- HumanB(std::string name);
- void attack();
- void setWeapon(Weapon weapon);
+public:
+ HumanB(std::string name);
+ void attack();
+ void setWeapon(Weapon& weapon);
+private:
+ std::string m_name;
+ Weapon* m_weapon;
};
#endif