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.
|
|
|
/* ************************************************************************** */
|
|
|
|
/* */
|
|
|
|
/* ::: :::::::: */
|
|
|
|
/* Zombie.cpp :+: :+: :+: */
|
|
|
|
/* +:+ +:+ +:+ */
|
|
|
|
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
|
|
|
|
/* +#+#+#+#+#+ +#+ */
|
|
|
|
/* Created: 2022/06/14 08:53:11 by narnaud #+# #+# */
|
|
|
|
/* Updated: 2022/06/14 09:45:30 by narnaud ### ########.fr */
|
|
|
|
/* */
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
|
|
|
#include "Zombie.hpp"
|
|
|
|
|
|
|
|
Zombie::Zombie(string name):_name(name) {
|
|
|
|
cout << "*" << name << " died.*\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
Zombie::~Zombie(void) {
|
|
|
|
cout << "*Zombie " << _name << " really died.*\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
void Zombie::announce(void) const {
|
|
|
|
cout << _name << ": BraiiiiiiinnnzzzZ...\n";
|
|
|
|
}
|