42's cpp modules.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

40 lines
1.3 KiB

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Zombie.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: pohl </var/spool/mail/pohl> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/05/09 10:32:53 by pohl #+# #+# */
/* Updated: 2021/07/19 18:21:10 by paulohl ### ########.fr */
/* */
/* ************************************************************************** */
#include <iostream>
#include "Zombie.hpp"
Zombie::Zombie( std::string name ): name(name)
{
}
Zombie::~Zombie( void )
{
Zombie::prefix();
std::cout << "*Sounds of dying again*" << std::endl;
}
void Zombie::announce( void ) const
{
Zombie::prefix();
std::cout << "Braaaaaiiiiiiinnnnssss......." << std::endl;
}
void Zombie::prefix( void ) const
{
std::cout << "<" << this->name << "> ";
}
std::string Zombie::getName( void ) const
{
return (this->name);
}