/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* AMateria.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: bchanot +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/12/18 19:23:39 by bchanot #+# #+# */ /* Updated: 2025/12/19 15:29:23 by bchanot ### ########.fr */ /* */ /* ************************************************************************** */ #include "AMateria.hpp" /* ** ------------------------------- CONSTRUCTOR -------------------------------- */ AMateria::AMateria() : _type("Punch") { std::cout << this->_type << " AMateria constructed" << std::endl; } AMateria::AMateria(std::string const & type) : _type(type) { std::cout << this->_type << " AMateria constructed" << std::endl; } AMateria::AMateria( const AMateria & src ) : _type(src._type) { std::cout << this->_type << " AMateria constructed" << std::endl; } /* ** -------------------------------- DESTRUCTOR -------------------------------- */ AMateria::~AMateria() { std::cout << this->_type << "AMateria destroyed" << std::endl; } /* ** --------------------------------- OVERLOAD --------------------------------- */ /* ** --------------------------------- METHODS ---------------------------------- */ void AMateria::use(ICharacter& target) { std::cout << this->_type << " In tour face ! Or mine ? Should i use on mine ... ?" << std::endl; } /* ** --------------------------------- ACCESSOR --------------------------------- */ std::string const & AMateria::getType() const { return this->_type; } /* ************************************************************************** */