From 4c30e98f4a4018a25d3a9f3ee790d589be803cb0 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 13 Nov 2020 14:43:17 +0100 Subject: Added main for cpp04/ex01 and cpp04/ex02, Fixed cpp04/03 MateriaSource --- cpp04/ex03/Character.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'cpp04/ex03/Character.hpp') diff --git a/cpp04/ex03/Character.hpp b/cpp04/ex03/Character.hpp index 6526ba2..5a27d2c 100644 --- a/cpp04/ex03/Character.hpp +++ b/cpp04/ex03/Character.hpp @@ -6,13 +6,14 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 16:44:43 by charles #+# #+# */ -/* Updated: 2020/11/12 15:42:43 by cacharle ### ########.fr */ +/* Updated: 2020/11/13 14:17:54 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef CHARACTER_HPP # define CHARACTER_HPP +# include # include "ICharacter.hpp" # define INVENTORY_MAX_SIZE 4 @@ -20,7 +21,6 @@ class Character : public ICharacter { public: - Character(); Character(Character const& other); Character& operator=(Character const& other); virtual ~Character(); @@ -35,6 +35,10 @@ private: AMateria* m_inventory[INVENTORY_MAX_SIZE]; int m_inventory_size; std::string m_name; + + void destroyInventory(); + + Character(); }; #endif -- cgit