blob: 51f0a7e3ff9e589c02a49bde6e19572c6cf23adf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* MateriaSource.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/14 17:17:40 by charles #+# #+# */
/* Updated: 2020/11/13 14:41:04 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MATERIASOURCE_HPP
# define MATERIASOURCE_HPP
# include "IMateriaSource.hpp"
# define LEARNED_MAX_SIZE 4
class MateriaSource : public IMateriaSource
{
public:
MateriaSource();
MateriaSource(MateriaSource const& other);
MateriaSource& operator=(MateriaSource const& other);
virtual ~MateriaSource();
virtual void learnMateria(AMateria* materia);
virtual AMateria* createMateria(std::string const& type);
private:
AMateria* m_learned[LEARNED_MAX_SIZE];
int m_learned_size;
void destroyLearned();
};
#endif
|