Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
InfluenzaAgent Class Reference
Inheritance diagram for InfluenzaAgent:
AgentBase

Protected Member Functions

override void Init ()
 
override bool AutoinfectCheck (float deltaT, PlayerBase player)
 
override bool CanAutoinfectPlayer (PlayerBase player)
 
override float GetInvasibilityEx (PlayerBase player)
 
override EStatLevels GetPotencyEx (PlayerBase player)
 
override float GetDieOffSpeedEx (PlayerBase player)
 

Protected Attributes

const float INVASIBILITY_INC_LOW_HC = 0.40
 
const float INVASIBILITY_INC_MEDIUM_HC = 0.60
 
const float INVASIBILITY_INC_CRITICAL_HC = 0.70
 
const float INVASIBILITY_DEC_COMMON_COLD = -0.3
 
const float INVASIBILITY_DEC_INFLUENZA = -0.3
 
const float INVASIBILITY_DEC_PNEUMONIA = 0.00
 
const int MAX_TIME_TO_CONTRACT = 8650
 
const int CONTRACT_TIME_THRESHOLD_MIN = 10
 at this time [s], character will contract the disease
 
const int CONTRACT_TIME_THRESHOLD_MAX = 200
 min value of time [s] for subtraction from MAX_TIME_TO_CONTRACT (used for randomization)
 
int m_TimeToContract = MAX_TIME_TO_CONTRACT
 max value of time [s] for subtraction from MAX_TIME_TO_CONTRACT (used for randomization)
 
const float CONTRACT_HEATCOMFORT_MODIFIER [3]
 
int m_ElapsedTime
 

Detailed Description

Definition at line 1 of file influenzaagent.c.

Member Function Documentation

◆ AutoinfectCheck()

override bool InfluenzaAgent::AutoinfectCheck ( float deltaT,
PlayerBase player )
protected

Definition at line 44 of file influenzaagent.c.

◆ CanAutoinfectPlayer()

override bool InfluenzaAgent::CanAutoinfectPlayer ( PlayerBase player)
protected

Definition at line 84 of file influenzaagent.c.

◆ GetDieOffSpeedEx()

override float InfluenzaAgent::GetDieOffSpeedEx ( PlayerBase player)
protected

Definition at line 124 of file influenzaagent.c.

◆ GetInvasibilityEx()

override float InfluenzaAgent::GetInvasibilityEx ( PlayerBase player)
protected

Definition at line 92 of file influenzaagent.c.

◆ GetPotencyEx()

override EStatLevels InfluenzaAgent::GetPotencyEx ( PlayerBase player)
protected

Definition at line 116 of file influenzaagent.c.

◆ Init()

override void InfluenzaAgent::Init ( )
protected

Definition at line 27 of file influenzaagent.c.

Member Data Documentation

◆ CONTRACT_HEATCOMFORT_MODIFIER

const float InfluenzaAgent::CONTRACT_HEATCOMFORT_MODIFIER[3]
protected
Initial value:
= {
0.25,
0.6,
1.0,
}

Definition at line 19 of file influenzaagent.c.

◆ CONTRACT_TIME_THRESHOLD_MAX

const int InfluenzaAgent::CONTRACT_TIME_THRESHOLD_MAX = 200
protected

min value of time [s] for subtraction from MAX_TIME_TO_CONTRACT (used for randomization)

Definition at line 15 of file influenzaagent.c.

◆ CONTRACT_TIME_THRESHOLD_MIN

const int InfluenzaAgent::CONTRACT_TIME_THRESHOLD_MIN = 10
protected

at this time [s], character will contract the disease

Definition at line 14 of file influenzaagent.c.

◆ INVASIBILITY_DEC_COMMON_COLD

const float InfluenzaAgent::INVASIBILITY_DEC_COMMON_COLD = -0.3
protected

Definition at line 9 of file influenzaagent.c.

◆ INVASIBILITY_DEC_INFLUENZA

const float InfluenzaAgent::INVASIBILITY_DEC_INFLUENZA = -0.3
protected

Definition at line 10 of file influenzaagent.c.

◆ INVASIBILITY_DEC_PNEUMONIA

const float InfluenzaAgent::INVASIBILITY_DEC_PNEUMONIA = 0.00
protected

Definition at line 11 of file influenzaagent.c.

◆ INVASIBILITY_INC_CRITICAL_HC

const float InfluenzaAgent::INVASIBILITY_INC_CRITICAL_HC = 0.70
protected

Definition at line 7 of file influenzaagent.c.

◆ INVASIBILITY_INC_LOW_HC

const float InfluenzaAgent::INVASIBILITY_INC_LOW_HC = 0.40
protected

Definition at line 5 of file influenzaagent.c.

◆ INVASIBILITY_INC_MEDIUM_HC

const float InfluenzaAgent::INVASIBILITY_INC_MEDIUM_HC = 0.60
protected

Definition at line 6 of file influenzaagent.c.

◆ m_ElapsedTime

int InfluenzaAgent::m_ElapsedTime
protected

Definition at line 25 of file influenzaagent.c.

◆ m_TimeToContract

int InfluenzaAgent::m_TimeToContract = MAX_TIME_TO_CONTRACT
protected

max value of time [s] for subtraction from MAX_TIME_TO_CONTRACT (used for randomization)

Definition at line 17 of file influenzaagent.c.

◆ MAX_TIME_TO_CONTRACT

const int InfluenzaAgent::MAX_TIME_TO_CONTRACT = 8650
protected

Definition at line 13 of file influenzaagent.c.


The documentation for this class was generated from the following file: