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/MateriaSource.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'cpp04/ex03/MateriaSource.hpp') diff --git a/cpp04/ex03/MateriaSource.hpp b/cpp04/ex03/MateriaSource.hpp index eb233eb..51f0a7e 100644 --- a/cpp04/ex03/MateriaSource.hpp +++ b/cpp04/ex03/MateriaSource.hpp @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 17:17:40 by charles #+# #+# */ -/* Updated: 2020/11/12 15:45:28 by cacharle ### ########.fr */ +/* Updated: 2020/11/13 14:41:04 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -25,12 +25,14 @@ public: MateriaSource& operator=(MateriaSource const& other); virtual ~MateriaSource(); - virtual void learnMateria(AMateria* materia); + virtual void learnMateria(AMateria* materia); virtual AMateria* createMateria(std::string const& type); private: AMateria* m_learned[LEARNED_MAX_SIZE]; - int m_learned_size; + int m_learned_size; + + void destroyLearned(); }; #endif -- cgit