update: module01/ex00
This commit is contained in:
parent
6e1b64938d
commit
07022df125
10 changed files with 244 additions and 2 deletions
28
cpp01/ex00/Zombie.cpp
Normal file
28
cpp01/ex00/Zombie.cpp
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* Zombie.cpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/11/04 16:10:21 by rparodi #+# #+# */
|
||||
/* Updated: 2024/11/04 16:34:30 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "Zombie.hpp"
|
||||
|
||||
Zombie::Zombie( std::string name )
|
||||
{
|
||||
_name = name;
|
||||
}
|
||||
|
||||
Zombie::~Zombie()
|
||||
{
|
||||
std::cout << "Zombie's hunter: killed " << _name << std::endl;
|
||||
}
|
||||
|
||||
void Zombie::announce()
|
||||
{
|
||||
std::cout << _name << ": BraiiiiiiinnnzzzZ..." << std::endl;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue