23 Health::Health(
unsigned int start_infectiousness,
unsigned int start_symptomatic,
24 unsigned int time_infectious,
unsigned int time_symptomatic) :
26 m_start_infectiousness(start_infectiousness), m_start_symptomatic(start_symptomatic) {
50 &&
"Health::stopInfection> person not infected");
unsigned int getDiseaseCounter() const
Get the disease counter.
Health(unsigned int start_infectiousness, unsigned int start_symptomatic, unsigned int time_infectious, unsigned int time_symptomatic)
void stopInfection()
Stop the infection.
Time Dependent Person DataType.
void resetDiseaseCounter()
Reset the disease counter.
void incrementDiseaseCounter()
Increment disease counter.
unsigned int m_start_infectiousness
Days after infection to become infectious.
unsigned int m_end_infectiousness
Days after infection to end infectious state.
HealthStatus m_status
The current status of the person w.r.t. the disease.
void update()
Update progress of the disease.
unsigned int m_start_symptomatic
Days after infection to become symptomatic.
unsigned int m_end_symptomatic
Days after infection to end symptomatic state.
void startInfection()
Start the infection.
void setImmune()
Set immune to true.