| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* MateriaSource.hpp :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2025/12/24 15:47:01 by bchanot #+# #+# */
- /* Updated: 2025/12/25 01:28:03 by bchanot ### ########.fr */
- /* */
- /* ************************************************************************** */
- #ifndef MATERIASOURCE_HPP
- # define MATERIASOURCE_HPP
- # include <iostream>
- # include <string>
- #include "AMateria.hpp"
- #include "IMateriaSource.hpp"
- class MateriaSource : public IMateriaSource
- {
- public:
- MateriaSource();
- MateriaSource( MateriaSource const & src );
- ~MateriaSource();
- virtual void learnMateria(AMateria* source);
- virtual AMateria* createMateria(std::string const & type);
- MateriaSource & operator=( MateriaSource const & rhs );
- private:
- AMateria *_items[4];
- };
- std::ostream & operator<<( std::ostream & o, MateriaSource const & i );
- #endif /* **************************************************** MATERIASOURCE_H */
|