blob: 1f3e0d517e26cdf4ad6e70a964911395067246e8 (
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
33
34
35
36
37
38
39
40
41
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Cure.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/14 17:38:01 by charles #+# #+# */
/* Updated: 2020/04/14 17:41:32 by charles ### ########.fr */
/* */
/* ************************************************************************** */
#include "Cure.hpp"
Cure::Cure() : AMateria("cure")
{
}
Cure::Cure(Cure const& other)
{
*this = other;
}
void Cure::operator=(Cure const& other)
{
AMateria::operator=(other);
}
Cure::~Cure()
{
}
AMateria* Cure::clone() const
{
return new Cure(*this);
}
void Cure::use(ICharacter& target)
{
std::cout << "* heals " << target.getName() << "'s wounds *" << std::endl;
}
|