| 123456789101112131415161718192021222324252627282930 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* IMateriaSource.hpp :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2025/12/24 15:35:03 by bchanot #+# #+# */
- /* Updated: 2025/12/24 15:35:58 by bchanot ### ########.fr */
- /* */
- /* ************************************************************************** */
- #ifndef IMATERIASOURCE_HPP
- # define IMATERIASOURCE_HPP
- # include <iostream>
- # include <string>
- #include "AMateria.hpp"
- class IMateriaSource
- {
- public:
- virtual ~IMateriaSource() {}
- virtual void learnMateria(AMateria*) = 0;
- virtual AMateria* createMateria(std::string const & type) = 0;
- };
- std::ostream & operator<<( std::ostream & o, IMateriaSource const & i );
- #endif /* ************************************************** IMATERIASOURCE_H */
|