DayZ Enforce
Script API
Private Member Functions | Private Attributes | List of all members
AgentPoolBase Class Reference

#include <AgentPoolBase.h>

Inheritance diagram for AgentPoolBase:
MessageReceiverBase AgentPoolInactive AgentPoolPlayer

Private Member Functions

void  AgentPoolBase (AgentManager manager)
 
void  ~AgentPoolBase ()
 
void  TickPoolPlayer ()
 
void  TickPoolGeneral ()
 
void  Newagent (AgentBase agent)
 
void  Addagent (AgentBase agent)
 
void  Removeagent (AgentBase agent)
 
void  CalculateDeltaT ()
 
void  Tick ()
 
void  OnStoreSave (ParamsWriteContext ctx)
 
bool  IsPlayerPool ()
 
void  PoolAttachByType (int agent, int value, bool triggerEvent=true)
 
void  PoolDetachByType (int agent, bool triggerEvent=true)
 
bool  PoolIsAttached (int agent)
 
array< int >  GetAgentList ()
 
void  ReactToImmuneCall (float value)
 

Private Attributes

AgentManager  m_Manager
 
autoptr array< AgentBase m_Pool
 
private float  m_DeltaT
 
private float  m_LastTick = 0
 
autoptr Timer  m_TickPool
 
int  m_Type
 
int  m_TickRate = 3
 
int  m_TickCounter = 0
 

Constructor & Destructor Documentation

void AgentPoolBase::AgentPoolBase ( AgentManager  manager )
private
void AgentPoolBase::~AgentPoolBase ( )
private

References m_Pool.

Member Function Documentation

void AgentPoolBase::TickPoolPlayer ( )
private
void AgentPoolBase::TickPoolGeneral ( )
private
void AgentPoolBase::Newagent ( AgentBase  agent )
private
void AgentPoolBase::Addagent ( AgentBase  agent )
private
void AgentPoolBase::Removeagent ( AgentBase  agent )
private

References m_Pool.

Referenced by AgentManager::Attach(), and AgentManager::Detach().

void AgentPoolBase::CalculateDeltaT ( )
private

References GetGame(), CGame::GetTime(), m_DeltaT, and m_LastTick.

Referenced by Tick().

void AgentPoolBase::Tick ( )
private
void AgentPoolBase::OnStoreSave ( ParamsWriteContext  ctx )
private

References m_Pool.

bool AgentPoolBase::IsPlayerPool ( )
private

References m_Type.

void AgentPoolBase::PoolAttachByType ( int  agent,
int  value,
bool  triggerEvent = true 
)
private

References m_Pool.

void AgentPoolBase::PoolDetachByType ( int  agent,
bool  triggerEvent = true 
)
private

References m_Pool.

bool AgentPoolBase::PoolIsAttached ( int  agent )
private

References m_Pool.

array< int > AgentPoolBase::GetAgentList ( )
private

References m_Pool.

void AgentPoolBase::ReactToImmuneCall ( float  value )
private

Member Data Documentation

AgentManager AgentPoolBase::m_Manager
private
autoptr array<AgentBase> AgentPoolBase::m_Pool
private
private float AgentPoolBase::m_DeltaT
private
private float AgentPoolBase::m_LastTick = 0
private

Referenced by CalculateDeltaT().

autoptr Timer AgentPoolBase::m_TickPool
private

Referenced by AgentPoolBase().

int AgentPoolBase::m_Type
private
int AgentPoolBase::m_TickRate = 3
private
int AgentPoolBase::m_TickCounter = 0
private

The documentation for this class was generated from the following files:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)