| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* AMateria.hpp :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2025/12/18 19:23:39 by bchanot #+# #+# */
- /* Updated: 2025/12/19 15:29:08 by bchanot ### ########.fr */
- /* */
- /* ************************************************************************** */
- #ifndef AMATERIA_HPP
- # define AMATERIA_HPP
- # include <iostream>
- # include <string>
- #include "ICharacter.hpp"
- class AMateria
- {
- public:
- AMateria();
- AMateria(std::string const & type);
- AMateria( AMateria const & src );
- ~AMateria();
- std::string const & getType() const;
- virtual AMateria* clone() const = 0;
- virtual void use(ICharacter& target);
- protected:
- std::string const &_type;
- };
- #endif /* ******************************************************** AMATERIA_H */
|