CPP04/ex03/inc/MateriaSource.hpp
2025-04-14 22:42:37 +02:00

30 lines
1.3 KiB
C++

/* ************************************************************************** */
/* */
/* :::::::: */
/* MateriaSource.hpp :+: :+: */
/* +:+ */
/* By: whaffman <whaffman@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2025/04/14 22:26:01 by whaffman #+# #+# */
/* Updated: 2025/04/14 22:26:45 by whaffman ######## odam.nl */
/* */
/* ************************************************************************** */
#pragma once
#include "IMateriaSource.hpp"
#include <string>
class MateriaSource : public IMateriaSource
{
private:
AMateria *materia[4];
public:
MateriaSource();
MateriaSource(MateriaSource const &other);
~MateriaSource() override;
MateriaSource &operator=(MateriaSource const &other);
void learnMateria(AMateria *m) override;
AMateria *createMateria(std::string const &type) override;
};