28 lines
1.2 KiB
C++
28 lines
1.2 KiB
C++
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* Zombie.cpp :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2024/11/04 11:40:41 by adjoly #+# #+# */
|
||
|
/* Updated: 2024/11/04 14:56:23 by adjoly ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "Zombie.hpp"
|
||
|
#include <iostream>
|
||
|
|
||
|
Zombie::Zombie(std::string name) {
|
||
|
this->name = name;
|
||
|
std::cout << this->name << " born" << std::endl;
|
||
|
}
|
||
|
|
||
|
Zombie::~Zombie(void) {
|
||
|
std::cout << this->name << " destroyed" << std::endl;
|
||
|
}
|
||
|
|
||
|
void Zombie::announce(void) {
|
||
|
std::cout << this->name << ": BraiiiiiiinnnzzzZ..." << std::endl;
|
||
|
}
|