/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* AMateria.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: bchanot +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/12/18 19:23:39 by bchanot #+# #+# */ /* Updated: 2025/12/26 01:09:08 by bchanot ### ########.fr */ /* */ /* ************************************************************************** */ #include "AMateria.hpp" /* ** ------------------------------- CONSTRUCTOR -------------------------------- */ AMateria::AMateria() : _type("Punch") { } AMateria::AMateria(std::string const & type) : _type(type) { } AMateria::AMateria( const AMateria & src ) : _type(src._type) { } /* ** -------------------------------- DESTRUCTOR -------------------------------- */ AMateria::~AMateria() { } /* ** --------------------------------- OVERLOAD --------------------------------- */ /* ** --------------------------------- METHODS ---------------------------------- */ void AMateria::use(ICharacter& target) { std::cout << "Use " << this->_type << " on " << target.getName() << "." << std::endl; } /* ** --------------------------------- ACCESSOR --------------------------------- */ std::string const & AMateria::getType() const { return this->_type; } /* ************************************************************************** */