blob: 291fddbc56cb47c443553afe226070cfe43c6708 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/13 09:47:21 by charles #+# #+# */
/* Updated: 2020/04/13 09:48:29 by charles ### ########.fr */
/* */
/* ************************************************************************** */
#include <cstdlib>
#include "Zombie.hpp"
#include "ZombieEvent.hpp"
int main()
{
Zombie* z;
ZombieEvent zevent;
Zombie zStack("onTheStack", "IdontLikeHeap");
srand(time(NULL));
zevent.setZombieType("standard");
z = zevent.newZombie("jean");
delete z;
for (int i = 0; i < 5; i++)
{
z = zevent.randomChump();
delete z;
}
return 0;
}
|