25 lines
367 B
C++
25 lines
367 B
C++
#ifndef AMATERIA_HPP
|
|
# define AMATERIA_HPP
|
|
|
|
# include <iostream>
|
|
|
|
#include "ICharacter.hpp"
|
|
|
|
class AMateria {
|
|
|
|
public:
|
|
AMateria(std::string const & type);
|
|
virtual ~AMateria();
|
|
|
|
std::string const & getType() const; //Returns the materia type
|
|
|
|
virtual AMateria* clone() const = 0;
|
|
virtual void use(ICharacter& target);
|
|
|
|
protected:
|
|
std::string _type;
|
|
|
|
};
|
|
|
|
#endif
|