blob: df771e8d549544f78a351bef4575550559efaa9e (
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
42
43
44
45
46
47
48
49
50
51
52
53
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* TacticalMarine.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/14 15:31:43 by charles #+# #+# */
/* Updated: 2020/11/12 15:37:41 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#include "TacticalMarine.hpp"
TacticalMarine::TacticalMarine()
{
std::cout << "Tactical Marine ready for battle!" << std::endl;
}
TacticalMarine::TacticalMarine(TacticalMarine const& other) { *this = other; }
TacticalMarine& TacticalMarine::operator=(TacticalMarine const& other)
{
(void)other;
return *this;
}
TacticalMarine::~TacticalMarine()
{
std::cout << "Aaargh..." << std::endl;
}
ISpaceMarine* TacticalMarine::clone() const
{
ISpaceMarine* cloned = new TacticalMarine();
*cloned = *this;
return cloned;
}
void TacticalMarine::battleCry() const
{
std::cout << "For the holy PLOT!" << std::endl;
}
void TacticalMarine::rangedAttack() const
{
std::cout << "* attacks with a botler *" << std::endl;
}
void TacticalMarine::meleeAttack() const
{
std::cout << "* attacks with a chainsword *" << std::endl;
}
|