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

Private Member Functions

void PlayerAgentPool (PlayerBase player)
 
int GetStorageVersion ()
 
void PrintAgents ()
 
void ImmuneSystemTick (float value, float deltaT)
 
void GrowAgents (float deltaT)
 
protected void ProcessTemporaryResistance (float deltaTime)
 
void OnStoreSave (ParamsWriteContext ctx)
 
bool OnStoreLoad (ParamsReadContext ctx, int version)
 
void DigestAgent (int agent_id, float count)
 
void AddAgent (int agent_id, float count)
 
void RemoveAgent (int agent_id)
 
void RemoveAllAgents ()
 
void ReduceAgent (int id, float percent)
 
int GetAgents ()
 
int GetSingleAgentCount (int agent_id)
 
float GetTotalAgentCount ()
 
void SpawnAgents (float deltaT)
 
void SetAgentCount (int agent_id, float count)
 
void AntibioticsAttack (float attack_value)
 
void DrugsAttack (EMedicalDrugsType drugType, float attackValue)
 
void SetTemporaryResistance (int agentId, float time)
 
float GetTemporaryResistance (int agentId)
 
private void ResetTemporaryResistance ()
 
void RemoteGrowRequestDebug (ParamsReadContext ctx)
 
void GetDebugObject (array< ref Param > object_out)
 

Private Attributes

const int STORAGE_VERSION = 137
 
int m_AgentMask
 
float m_LastTicked
 
float m_TotalAgentCount
 
PlayerBase m_Player
 
ref map< int, floatm_VirusPool
 
protected ref map< int, floatm_AgentTemporaryResistance
 
PluginTransmissionAgents m_PluginTransmissionAgents = PluginTransmissionAgents.Cast(GetPlugin(PluginTransmissionAgents))
 
ref array< intm_VirusPoolArray
 DEPRECATED.
 

Constructor & Destructor Documentation

◆ PlayerAgentPool()

void PlayerAgentPool ( PlayerBase  player)
inlineprivate

Member Function Documentation

◆ AddAgent()

void AddAgent ( int  agent_id,
float  count 
)
inlineprivate

◆ AntibioticsAttack()

void AntibioticsAttack ( float  attack_value)
inlineprivate

◆ DigestAgent()

void DigestAgent ( int  agent_id,
float  count 
)
inlineprivate

◆ DrugsAttack()

void DrugsAttack ( EMedicalDrugsType  drugType,
float  attackValue 
)
inlineprivate

◆ GetAgents()

int GetAgents ( )
inlineprivate

References m_AgentMask.

◆ GetDebugObject()

void GetDebugObject ( array< ref Param object_out)
inlineprivate

◆ GetSingleAgentCount()

int GetSingleAgentCount ( int  agent_id)
inlineprivate

◆ GetStorageVersion()

int GetStorageVersion ( )
inlineprivate

References STORAGE_VERSION.

◆ GetTemporaryResistance()

float GetTemporaryResistance ( int  agentId)
inlineprivate

◆ GetTotalAgentCount()

float GetTotalAgentCount ( )
inlineprivate

References m_VirusPool.

◆ GrowAgents()

◆ ImmuneSystemTick()

void ImmuneSystemTick ( float  value,
float  deltaT 
)
inlineprivate

◆ OnStoreLoad()

bool OnStoreLoad ( ParamsReadContext  ctx,
int  version 
)
inlineprivate

◆ OnStoreSave()

◆ PrintAgents()

void PrintAgents ( )
inlineprivate

References Debug::Log(), and m_VirusPool.

◆ ProcessTemporaryResistance()

protected void ProcessTemporaryResistance ( float  deltaTime)
inlineprivate

◆ ReduceAgent()

void ReduceAgent ( int  id,
float  percent 
)
inlineprivate

◆ RemoteGrowRequestDebug()

void RemoteGrowRequestDebug ( ParamsReadContext  ctx)
inlineprivate

◆ RemoveAgent()

void RemoveAgent ( int  agent_id)
inlineprivate

References SetAgentCount().

◆ RemoveAllAgents()

void RemoveAllAgents ( )
inlineprivate

◆ ResetTemporaryResistance()

private void ResetTemporaryResistance ( )
inlineprivate

◆ SetAgentCount()

void SetAgentCount ( int  agent_id,
float  count 
)
inlineprivate

◆ SetTemporaryResistance()

void SetTemporaryResistance ( int  agentId,
float  time 
)
inlineprivate

◆ SpawnAgents()

Field Documentation

◆ m_AgentMask

int m_AgentMask
private

◆ m_AgentTemporaryResistance

◆ m_LastTicked

float m_LastTicked
private

Referenced by PlayerAgentPool().

◆ m_Player

◆ m_PluginTransmissionAgents

PluginTransmissionAgents m_PluginTransmissionAgents = PluginTransmissionAgents.Cast(GetPlugin(PluginTransmissionAgents))
private

◆ m_TotalAgentCount

float m_TotalAgentCount
private

Referenced by GrowAgents().

◆ m_VirusPool

◆ m_VirusPoolArray

ref array<int> m_VirusPoolArray
private

DEPRECATED.

Referenced by PlayerAgentPool().

◆ STORAGE_VERSION

const int STORAGE_VERSION = 137
private

Referenced by GetStorageVersion().


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