mirror of
https://github.com/Ladebeze66/cpp-partie-1.git
synced 2025-12-16 14:08:04 +01:00
36 lines
1.2 KiB
C++
36 lines
1.2 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* Ice.cpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: fgras-ca <fgras-ca@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* 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;
|
|
}
|