/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Cure.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: fgras-ca +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/12/31 17:03:56 by fgras-ca #+# #+# */ /* Updated: 2023/12/31 17:04:37 by fgras-ca ### ########.fr */ /* */ /* ************************************************************************** */ #include "Cure.hpp" Cure::Cure() : AMateria("cure") {} Cure::Cure(const Cure& other) : AMateria(other) {} Cure& Cure::operator=(const Cure& other) { AMateria::operator=(other); return (*this); } Cure::~Cure() {} AMateria* Cure::clone() const { return new Cure(*this); } void Cure::use(ICharacter& target) { std::cout << "* heals " << target.getName() << "’s wounds *" << std::endl; }