blob: c9ce83c6636e4d37419e8993f2824d51e68aa332 (
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
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* SuperMutant.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/14 13:30:47 by charles #+# #+# */
/* Updated: 2020/11/12 13:54:19 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#include "SuperMutant.hpp"
SuperMutant::SuperMutant() : Enemy(170, "Super Mutant")
{
std::cout << "Gaaah. Me want smash heads!" << std::endl;
}
SuperMutant::SuperMutant(SuperMutant const& other) : Enemy(other)
{
std::cout << "Gaaah. Me want smash heads!" << std::endl;
}
SuperMutant& SuperMutant::operator=(SuperMutant const& other)
{
Enemy::operator=(other);
return *this;
}
SuperMutant::~SuperMutant()
{
std::cout << "Aaargh..." << std::endl;
}
void SuperMutant::takeDamage(int amount)
{
Enemy::takeDamage(amount - 3);
}
|