PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
InfluenzaAgent Class Reference

Private 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)
 

Private Attributes

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

Member Function Documentation

◆ AutoinfectCheck()

◆ CanAutoinfectPlayer()

override bool CanAutoinfectPlayer ( PlayerBase  player)
inlineprivate

◆ GetDieOffSpeedEx()

override float GetDieOffSpeedEx ( PlayerBase  player)
inlineprivate

◆ GetInvasibilityEx()

◆ GetPotencyEx()

override EStatLevels GetPotencyEx ( PlayerBase  player)
inlineprivate

◆ Init()

Field Documentation

◆ CONTRACT_HEATCOMFORT_MODIFIER

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

Referenced by AutoinfectCheck().

◆ CONTRACT_TIME_THRESHOLD_MAX

protected const int CONTRACT_TIME_THRESHOLD_MAX = 200
private

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

Referenced by AutoinfectCheck().

◆ CONTRACT_TIME_THRESHOLD_MIN

protected const int CONTRACT_TIME_THRESHOLD_MIN = 10
private

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

Referenced by AutoinfectCheck().

◆ INFLUENZA_AGENT_AUTOINFECT_THRESHOLD_HC

const float INFLUENZA_AGENT_AUTOINFECT_THRESHOLD_HC = PlayerConstants.THRESHOLD_HEAT_COMFORT_MINUS_WARNING
private

Referenced by CanAutoinfectPlayer().

◆ INVASIBILITY_DEC_COMMON_COLD

protected const float INVASIBILITY_DEC_COMMON_COLD = -0.3
private

Referenced by GetInvasibilityEx().

◆ INVASIBILITY_DEC_INFLUENZA

protected const float INVASIBILITY_DEC_INFLUENZA = -0.3
private

Referenced by GetInvasibilityEx().

◆ INVASIBILITY_DEC_PNEUMONIA

protected const float INVASIBILITY_DEC_PNEUMONIA = 0.00
private

Referenced by GetInvasibilityEx().

◆ INVASIBILITY_INC_CRITICAL_HC

protected const float INVASIBILITY_INC_CRITICAL_HC = 0.70
private

Referenced by GetInvasibilityEx().

◆ INVASIBILITY_INC_LOW_HC

protected const float INVASIBILITY_INC_LOW_HC = 0.40
private

Referenced by GetInvasibilityEx().

◆ INVASIBILITY_INC_MEDIUM_HC

protected const float INVASIBILITY_INC_MEDIUM_HC = 0.60
private

Referenced by GetInvasibilityEx().

◆ m_ElapsedTime

protected int m_ElapsedTime
private

Referenced by AutoinfectCheck(), and Init().

◆ m_TimeToContract

protected int m_TimeToContract = MAX_TIME_TO_CONTRACT
private

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

Referenced by AutoinfectCheck().

◆ MAX_TIME_TO_CONTRACT

protected const int MAX_TIME_TO_CONTRACT = 8650
private

Referenced by AutoinfectCheck().


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