/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Ice.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: fgras-ca +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/12/31 16:49:57 by fgras-ca #+# #+# */ /* Updated: 2023/12/31 16:50:52 by fgras-ca ### ########.fr */ /* */ /* ************************************************************************** */ #include "Ice.hpp" Ice::Ice() : AMateria("ice") {} Ice::Ice(const Ice& other) : AMateria(other) {} Ice& Ice::operator=(const Ice& other) { AMateria::operator=(other); return (*this); } Ice::~Ice() {} AMateria* Ice::clone() const { return new Ice(*this); } void Ice::use(ICharacter& target) { std::cout << "* shoots an ice bolt at " << target.getName() << " *" << std::endl; }