-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzombieHorde.cpp
23 lines (20 loc) · 1.05 KB
/
zombieHorde.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* zombieHorde.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: zelhajou <zelhajou@student.1337.ma> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/06 11:42:01 by zelhajou #+# #+# */
/* Updated: 2024/06/06 12:03:27 by zelhajou ### ########.fr */
/* */
/* ************************************************************************** */
#include "Zombie.hpp"
Zombie* zombieHorde(int N, std::string name)
{
Zombie *zombies = new Zombie[N];
for (int i = 0; i < N; i++) {
zombies[i].setName(name);
}
return zombies;
}