Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
AgentBase Class Reference
Inheritance diagram for AgentBase:
MessageReceiverBase FoodPoisonAgent HeavyMetalAgent InfluenzaAgent WoundAgent

Protected Member Functions

void AgentBase ()
 how fast the agent dies off when not potent enough to grow(per sec)
void InitDefaults ()
void Init ()
int GetAgentType ()
float GetDieOffSpeedEx (PlayerBase player)
EStatLevels GetPotencyEx (PlayerBase player)
float GetInvasibilityEx (PlayerBase player)
float GetDigestibilityEx (PlayerBase player)
EStatLevels GetPotency ()
float GetDieOffSpeed ()
float GetAntiboticsResistance ()
float GetAntibioticsResistanceEx (PlayerBase player)
float GetDrugResistance (EMedicalDrugsType drugType, PlayerBase player)
float GetInvasibility ()
bool GrowDuringMedicalDrugsAttack (EMedicalDrugsType drugType, PlayerBase player)
 should this agent grow based on invasibility even during usage of specific medical drugs attack
float GetDigestibility ()
float CalculateAutoinfectProbability (float userprob)
bool AutoinfectCheck (float deltaT, PlayerBase player)
bool CanAutoinfectPlayer (PlayerBase player)
float GetTransferabilityIn ()
float GetTransferabilityOut ()
float GetTransferabilityAirOut ()
int GetMaxCount ()
int GetAutoinfectCount ()
string GetName ()
bool GrowDuringAntibioticsAttack (PlayerBase player)
 should this agent grow based on invasibility even during antibiotics attack

Protected Attributes

ref map< EMedicalDrugsType, floatm_DrugResistances = new map<EMedicalDrugsType, float>()
 [0..1], 0 means antibiotics have full effect, 1 means no effect - deprecated, use the m_DrugResistance map below for drug resistances
EStatLevels m_Potency = EStatLevels.MEDIUM
float m_DieOffSpeed = 1
 grow when player's immune system is at this level or lower

Detailed Description

Definition at line 1 of file agentbase.c.

Constructor & Destructor Documentation

◆ AgentBase()

void AgentBase::AgentBase ( )
protected

how fast the agent dies off when not potent enough to grow(per sec)

Definition at line 19 of file agentbase.c.

Member Function Documentation

◆ AutoinfectCheck()

bool AgentBase::AutoinfectCheck ( float deltaT,
PlayerBase player )
protected

Definition at line 103 of file agentbase.c.

◆ CalculateAutoinfectProbability()

float AgentBase::CalculateAutoinfectProbability ( float userprob)
protected

Definition at line 98 of file agentbase.c.

◆ CanAutoinfectPlayer()

bool AgentBase::CanAutoinfectPlayer ( PlayerBase player)
protected

Definition at line 116 of file agentbase.c.

◆ GetAgentType()

int AgentBase::GetAgentType ( )
protected

Definition at line 33 of file agentbase.c.

◆ GetAntibioticsResistanceEx()

float AgentBase::GetAntibioticsResistanceEx ( PlayerBase player)
protected

Definition at line 72 of file agentbase.c.

◆ GetAntiboticsResistance()

float AgentBase::GetAntiboticsResistance ( )
protected

Definition at line 68 of file agentbase.c.

◆ GetAutoinfectCount()

int AgentBase::GetAutoinfectCount ( )
protected

Definition at line 141 of file agentbase.c.

◆ GetDieOffSpeed()

float AgentBase::GetDieOffSpeed ( )
protected

Definition at line 63 of file agentbase.c.

◆ GetDieOffSpeedEx()

float AgentBase::GetDieOffSpeedEx ( PlayerBase player)
protected

Definition at line 38 of file agentbase.c.

◆ GetDigestibility()

float AgentBase::GetDigestibility ( )
protected

Definition at line 93 of file agentbase.c.

◆ GetDigestibilityEx()

float AgentBase::GetDigestibilityEx ( PlayerBase player)
protected

Definition at line 53 of file agentbase.c.

◆ GetDrugResistance()

float AgentBase::GetDrugResistance ( EMedicalDrugsType drugType,
PlayerBase player )
protected

Definition at line 77 of file agentbase.c.

◆ GetInvasibility()

float AgentBase::GetInvasibility ( )
protected

Definition at line 82 of file agentbase.c.

◆ GetInvasibilityEx()

float AgentBase::GetInvasibilityEx ( PlayerBase player)
protected

Definition at line 48 of file agentbase.c.

◆ GetMaxCount()

int AgentBase::GetMaxCount ( )
protected

Definition at line 136 of file agentbase.c.

◆ GetName()

string AgentBase::GetName ( )
protected

Definition at line 146 of file agentbase.c.

◆ GetPotency()

EStatLevels AgentBase::GetPotency ( )
protected

Definition at line 58 of file agentbase.c.

◆ GetPotencyEx()

EStatLevels AgentBase::GetPotencyEx ( PlayerBase player)
protected

Definition at line 43 of file agentbase.c.

◆ GetTransferabilityAirOut()

float AgentBase::GetTransferabilityAirOut ( )
protected

Definition at line 131 of file agentbase.c.

◆ GetTransferabilityIn()

float AgentBase::GetTransferabilityIn ( )
protected

Definition at line 121 of file agentbase.c.

◆ GetTransferabilityOut()

float AgentBase::GetTransferabilityOut ( )
protected

Definition at line 126 of file agentbase.c.

◆ GrowDuringAntibioticsAttack()

bool AgentBase::GrowDuringAntibioticsAttack ( PlayerBase player)
protected

should this agent grow based on invasibility even during antibiotics attack

DEPRECATED

Definition at line 156 of file agentbase.c.

◆ GrowDuringMedicalDrugsAttack()

bool AgentBase::GrowDuringMedicalDrugsAttack ( EMedicalDrugsType drugType,
PlayerBase player )
protected

should this agent grow based on invasibility even during usage of specific medical drugs attack

Definition at line 88 of file agentbase.c.

◆ Init()

void AgentBase::Init ( )
protected

◆ InitDefaults()

void AgentBase::InitDefaults ( )
protected

Definition at line 25 of file agentbase.c.

Member Data Documentation

◆ m_DieOffSpeed

float AgentBase::m_DieOffSpeed = 1
protected

grow when player's immune system is at this level or lower

Definition at line 17 of file agentbase.c.

◆ m_DrugResistances

ref map<EMedicalDrugsType, float> AgentBase::m_DrugResistances = new map<EMedicalDrugsType, float>()
protected

[0..1], 0 means antibiotics have full effect, 1 means no effect - deprecated, use the m_DrugResistance map below for drug resistances

Definition at line 14 of file agentbase.c.

◆ m_Potency

EStatLevels AgentBase::m_Potency = EStatLevels.MEDIUM
protected

Definition at line 16 of file agentbase.c.


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