zombieHorde.cpp 1.1 KB

12345678910111213141516171819202122232425
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* zombieHorde.cpp :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: bchanot <bchanot@gmail.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2025/07/15 13:58:41 by bchanot #+# #+# */
  9. /* Updated: 2025/07/15 14:30:26 by bchanot ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #include "Zombie.hpp"
  13. Zombie *zombieHorde(int N, std::string name) {
  14. Zombie *zombies = new Zombie[N];
  15. int i;
  16. i = 0;
  17. while (i < N) {
  18. zombies[i].setZombie(name);
  19. i++;
  20. }
  21. return zombies;
  22. }