-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathZombie.cpp
36 lines (30 loc) · 1.23 KB
/
Zombie.cpp
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Zombie.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tblaase <tblaase@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/16 15:40:15 by tblaase #+# #+# */
/* Updated: 2022/03/16 17:21:52 by tblaase ### ########.fr */
/* */
/* ************************************************************************** */
#include "Zombie.hpp"
// Constructor
Zombie::Zombie()
{
}
// Deconstructor
Zombie::~Zombie()
{
std::cout << _name << " stepped on a Potato Mine and died.\n" << std::endl;
}
// Public Methods
void Zombie::announce(void) const
{
std::cout << _name << ": BraiiiiiiinnnzzzZ...\n" << std::endl;
}
void Zombie::set_name(std::string name)
{
this->_name = name;
}