/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Ice.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: bchanot +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/12/19 15:29:40 by bchanot #+# #+# */ /* Updated: 2025/12/26 00:39:28 by bchanot ### ########.fr */ /* */ /* ************************************************************************** */ #include "Ice.hpp" /* ** ------------------------------- CONSTRUCTOR -------------------------------- */ Ice::Ice() : AMateria("ice") { } Ice::Ice( const Ice & src ) : AMateria(src._type) { } /* ** -------------------------------- DESTRUCTOR -------------------------------- */ Ice::~Ice() { } /* ** --------------------------------- OVERLOAD --------------------------------- */ std::ostream & operator<<( std::ostream & o, Ice const & i ) { o << "Type = " << i.getType(); return o; } /* ** --------------------------------- METHODS ---------------------------------- */ AMateria* Ice::clone() const { return (new Ice(*this)); } void Ice::use(ICharacter& target) { std::cout << "* shoots an ice bolt at " << target.getName() << " *" << std::endl; } /* ** --------------------------------- ACCESSOR --------------------------------- */ /* ************************************************************************** */