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/AMateria.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'cpp04/ex03/AMateria.hpp') diff --git a/cpp04/ex03/AMateria.hpp b/cpp04/ex03/AMateria.hpp index 7fef1c8..41ef132 100644 --- a/cpp04/ex03/AMateria.hpp +++ b/cpp04/ex03/AMateria.hpp @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 16:24:00 by charles #+# #+# */ -/* Updated: 2020/11/12 15:41:54 by cacharle ### ########.fr */ +/* Updated: 2020/11/13 14:42:03 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -26,17 +26,18 @@ public: virtual ~AMateria(); AMateria(std::string const& type); + std::string const& getType() const; - unsigned int getXP() const; + unsigned int getXP() const; virtual AMateria* clone() const = 0; - virtual void use(ICharacter& target); + virtual void use(ICharacter& target); protected: AMateria(); - std::string m_type; - unsigned int _xp; // subject force _xp instead of m_xp + std::string m_type; + unsigned int _xp; // subject force _xp }; #endif -- cgit