aboutsummaryrefslogtreecommitdiff
path: root/cpp01/ex03/Zombie.cpp
blob: a8104d4bc5ec228207068f10fb7c88e6b43278eb (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
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   Zombie.cpp                                         :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: charles <charles.cabergs@gmail.com>        +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2020/04/13 09:38:16 by charles           #+#    #+#             */
/*   Updated: 2020/11/09 12:53:44 by cacharle         ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#include <iostream>
#include "Zombie.hpp"

Zombie::Zombie()
    : m_name(""), m_type("")
{}

Zombie::Zombie(std::string const& name, std::string const& type)
    : m_name(name), m_type(type)
{
	announce();
}

Zombie::~Zombie()
{
	std::cout << "<" << m_name << " (" << m_type << ")> AAAAARG... ME DYING" << std::endl;
}

void Zombie::announce()
{
	std::cout << "<" << m_name << " (" << m_type << ")> Braiiiiiiinnnssss..." << std::endl;
}

void Zombie::setName(std::string const& name)
{
    m_name = name;
}

void Zombie::setType(std::string const& type)
{
    m_type = type;
}