34 lines
1.2 KiB
C++
34 lines
1.2 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* Zombie.cpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2025/09/05 16:46:34 by aortigos #+# #+# */
|
|
/* Updated: 2025/09/14 13:48:22 by aortigos ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "Zombie.hpp"
|
|
|
|
Zombie::Zombie()
|
|
{
|
|
this->name = "NULL";
|
|
}
|
|
|
|
Zombie::~Zombie()
|
|
{
|
|
std::cout << this->name << " has died.... again..." << std::endl;
|
|
}
|
|
|
|
Zombie::Zombie(std::string str)
|
|
{
|
|
this->name = str;
|
|
}
|
|
|
|
void Zombie::announce( void )
|
|
{
|
|
std::cout << this->name << ": BraiiiiiiinnnzzzZ..." << std::endl;
|
|
}
|