31 lines
1.2 KiB
C++
31 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 18:47:10 by adjoly ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "Zombie.hpp"
|
||
|
#include <iostream>
|
||
|
|
||
|
Zombie::Zombie() {
|
||
|
std::cout << "Zombie born" << std::endl;
|
||
|
}
|
||
|
|
||
|
void Zombie::setName(std::string newName) {
|
||
|
this->name = newName;
|
||
|
}
|
||
|
|
||
|
Zombie::~Zombie(void) {
|
||
|
std::cout << this->name << " destroyed" << std::endl;
|
||
|
}
|
||
|
|
||
|
void Zombie::announce(void) {
|
||
|
std::cout << this->name << ": BraiiiiiiinnnzzzZ..." << std::endl;
|
||
|
}
|