/ CPP_Modules / CPP_Module_04 / ex03 / IMateriaSource.hpp
IMateriaSource.hpp
 1  /* ************************************************************************** */
 2  /*                                                                            */
 3  /*                                                        :::      ::::::::   */
 4  /*   IMateriaSource.hpp                                 :+:      :+:    :+:   */
 5  /*                                                    +:+ +:+         +:+     */
 6  /*   By: gychoi <gychoi@student.42seoul.kr>         +#+  +:+       +#+        */
 7  /*                                                +#+#+#+#+#+   +#+           */
 8  /*   Created: 2023/08/17 23:15:26 by gychoi            #+#    #+#             */
 9  /*   Updated: 2023/08/17 23:17:04 by gychoi           ###   ########.fr       */
10  /*                                                                            */
11  /* ************************************************************************** */
12  
13  #pragma once
14  #ifndef __IMATERIASOURCE_HPP__
15  # define __IMATERIASOURCE_HPP__
16  
17  class	IMateriaSource
18  {
19  	public:
20  		virtual ~IMateriaSource() {}
21  		virtual void		learnMateria(AMateria*) = 0;
22  		virtual AMateria*	createMateria(std::string const& type) = 0;
23  };
24  
25  #endif	/* __IMATERIASOURCE_HPP__ */