mirror of
https://github.com/Ladebeze66/cpp-partie-1.git
synced 2025-12-16 05:58:04 +01:00
23 lines
1.0 KiB
C++
23 lines
1.0 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* zombieHorde.cpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: fgras-ca <fgras-ca@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/12/24 15:05:45 by fgras-ca #+# #+# */
|
|
/* Updated: 2023/12/24 15:17:10 by fgras-ca ### ########.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);
|
|
} |