summaryrefslogtreecommitdiff
path: root/ex01/zombieHorde.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ex01/zombieHorde.cpp')
-rw-r--r--ex01/zombieHorde.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/ex01/zombieHorde.cpp b/ex01/zombieHorde.cpp
index 462fb34..6618a66 100644
--- a/ex01/zombieHorde.cpp
+++ b/ex01/zombieHorde.cpp
@@ -6,11 +6,18 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/10 11:10:08 by dkaiser #+# #+# */
-/* Updated: 2025/02/10 11:11:04 by dkaiser ### ########.fr */
+/* Updated: 2025/02/10 11:32:40 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
#include "Zombie.hpp"
Zombie* zombieHorde(int N, std::string name)
-{}
+{
+ Zombie* horde = new Zombie[N];
+ for (int i = 0; i < N; i++)
+ {
+ horde[i].setName(name);
+ }
+ return horde;
+}