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