diff options
| author | Dominik Kaiser | 2025-02-10 10:58:20 +0100 |
|---|---|---|
| committer | Dominik Kaiser | 2025-02-10 10:58:20 +0100 |
| commit | 8f20b10f6bd9a938a1519f54100f8fbdcdc6431d (patch) | |
| tree | 3f0d08f05d5e50086b23fecad7e61b9079c5d7dc /ex00/newZombie.cpp | |
| parent | dc032706847335c7e76b26492725939318f5f84e (diff) | |
| download | cpp01-8f20b10f6bd9a938a1519f54100f8fbdcdc6431d.tar.gz cpp01-8f20b10f6bd9a938a1519f54100f8fbdcdc6431d.zip | |
Add newZombie func
Diffstat (limited to 'ex00/newZombie.cpp')
| -rw-r--r-- | ex00/newZombie.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ex00/newZombie.cpp b/ex00/newZombie.cpp index 74b9ca8..916a3a9 100644 --- a/ex00/newZombie.cpp +++ b/ex00/newZombie.cpp @@ -6,7 +6,15 @@ /* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/02/10 10:27:26 by dkaiser #+# #+# */ -/* Updated: 2025/02/10 10:27:27 by dkaiser ### ########.fr */ +/* Updated: 2025/02/10 10:56:54 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ +#include "Zombie.hpp" + +Zombie* newZombie(std::string name) +{ + Zombie* zombie = new Zombie(name); + zombie->announce(); + return zombie; +} |
