-
Notifications
You must be signed in to change notification settings - Fork 1
/
simulation.h
53 lines (40 loc) · 1.38 KB
/
simulation.h
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef SIMULATION_H
#define SIMULATION_H
//setting max size of area
#define MAX_X 1000
#define MAX_Y 1000
//Number of people in the simulation
#define NUM_OF_PEOPLE 1000
//Max speed of person
#define MAX_SPEED 30
//Number of popular places (must be greater than 0)
#define POPULAR_PLACES 67 //Cannot have more than 67 popular places for visualized simulations
//Chance of infection upon contact
#define INFECTION_CHANCE 1.00
//Maximum number of hours the infection lasts for
//Randomize in the future
#define MAX_INFECTION_DURATION 168
//The distance a person has to be from an infected individual in order to catch the pathogen
#define INFECTION_RADIUS 2
//Chance that person is social is social distancing
#define SOCIAL_DISTANCING_CHANCE 0.65 //Coming soon
//Fatality rate
#define FATALITY_RATE 0.1
//Maximum amountt of time a person can spend in a popular place
#define MAX_TIME_AT_POPULAR_PLACE 3
//Maximum amount of time a person can spend at home
#define MAX_TIME_AT_HOME 20
//Number of cases at the start of the simulation
#define NUMBER_OF_CASES_UPON_START 1
//Defining color for different status types
#define VULNERABLE_COLOR Color::White
#define INFECTED_COLOR Color::Red
#define IMMUNE_COLOR Color::Blue
#define DEAD_COLOR Color::Green
namespace sim{
//Disease status
enum{IMMUNE, VULNERABLE, INFECTED, DEAD};
//Location status
enum{MOVING, AT_HOME, POPULAR_PLACE};
}
#endif