aboutsummaryrefslogtreecommitdiff
path: root/cpp01/ex02/Zombie.cpp
blob: 3736101671d85dcc5d16ae0bc1818ad13709b781 (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
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   Zombie.cpp                                         :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: charles <charles.cabergs@gmail.com>        +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2020/04/13 09:38:16 by charles           #+#    #+#             */
/*   Updated: 2020/11/09 10:27:15 by cacharle         ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#include "Zombie.hpp"

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;
}