blob: 6775138bd4c4cb446c83c800ee334031e56bfcc8 (
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
|
#include <cstdlib>
#include "ZombieEvent.hpp"
void ZombieEvent::setZombieType(std::string type)
{
stored_type = type;
}
Zombie *ZombieEvent::newZombie(std::string name)
{
return new Zombie(name, stored_type);
}
Zombie *ZombieEvent::randomChump()
{
std::string pool[10] = {
"Jordan",
"Mr.poopybutthole",
"Jean-Denis",
"Table",
"Charle",
"Abe",
"James",
"Homer",
"yo",
"rideaux"
};
return new Zombie(pool[rand() % 10], stored_type);
}
|