blob: e27ae26ca6a835fbb34110d9a5f4e8c17a7c52a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Cure.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/14 17:38:01 by charles #+# #+# */
/* Updated: 2020/11/12 15:43:44 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#include "Cure.hpp"
Cure::Cure() : AMateria("cure") {}
Cure::Cure(Cure const& other) { *this = other; }
Cure& Cure::operator=(Cure const& 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;
}
|