1
0
This repository has been archived on 2025-01-26. You can view files and clone it, but cannot push or open issues or pull requests.
CPP_Module_04/ex03/AMateria.hpp

33 lines
1.3 KiB
C++
Raw Permalink Normal View History

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* AMateria.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/06 16:29:29 by adjoly #+# #+# */
/* Updated: 2024/12/12 19:27:30 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#pragma once
#include <string>
class ICharacter;
class AMateria {
protected:
std::string _type;
public:
AMateria(void);
virtual ~AMateria(void);
AMateria(const AMateria &);
AMateria(std::string const &);
AMateria &operator=(const AMateria &);
std::string const &getType(void) const;
virtual AMateria *clone(void) const = 0;
virtual void use(ICharacter &) = 0;
};