You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.1 KiB
25 lines
1.1 KiB
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* zombieHorde.cpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2022/06/14 08:17:02 by narnaud #+# #+# */
|
|
/* Updated: 2022/06/16 12:47:20 by narnaud ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "Zombie.hpp"
|
|
|
|
Zombie *zombieHorde(int N, string name)
|
|
{
|
|
Zombie *ret = new Zombie[N];
|
|
int n = 0;
|
|
while (n < N)
|
|
{
|
|
ret[n].setName(name + std::to_string(n));
|
|
n++;
|
|
}
|
|
return (ret);
|
|
}
|
|
|