summaryrefslogtreecommitdiff
path: root/ex00/newZombie.cpp
diff options
context:
space:
mode:
authorDominik Kaiser2025-02-10 10:58:20 +0100
committerDominik Kaiser2025-02-10 10:58:20 +0100
commit8f20b10f6bd9a938a1519f54100f8fbdcdc6431d (patch)
tree3f0d08f05d5e50086b23fecad7e61b9079c5d7dc /ex00/newZombie.cpp
parentdc032706847335c7e76b26492725939318f5f84e (diff)
downloadcpp01-8f20b10f6bd9a938a1519f54100f8fbdcdc6431d.tar.gz
cpp01-8f20b10f6bd9a938a1519f54100f8fbdcdc6431d.zip
Add newZombie func
Diffstat (limited to 'ex00/newZombie.cpp')
-rw-r--r--ex00/newZombie.cpp10
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;
+}