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

#include <AgentManager.h>

Inheritance diagram for AgentManager:
MessageReceiverBase

Private Member Functions

void  AgentManager (PlayerBase player)
 
void  ~AgentManager ()
 
void  Attach (AgentBase agent, string target, AgentPoolBase parent)
 
void  Detach (AgentBase agent, string target, AgentPoolBase home)
 
void  AddPool (AgentPoolBase pool)
 
AgentPoolBase  FindPoolByString (string pool)
 
void  AttachByType (int agent, int value, bool triggerEvent=true)
 
void  DetachByType (int agent, bool triggerEvent=true)
 
void  OnStoreSave (ParamsWriteContext ctx)
 
void  OnStoreLoad (ParamsReadContext ctx)
 
PlayerBase  GetPlayer ()
 
float  GetAgentInvasibility (int agent)
 
float  GetAgentTransferability (int agent)
 
void  AddToSaveQueue (int agent, int count)
 
bool  IsAttached (int agent)
 
array< int >  GetAllAgents ()
 
int  GetSingleAgentCount (int agent)
 
void  ImmuneSystemTick (float value)
 
int  GetAgentInitValue (int agent)
 
int  GetActiveAgentsCount ()
 

Private Attributes

autoptr AgentPoolBase  m_PoolGeneral
 
autoptr AgentPoolBase  m_PoolPlayer
 
autoptr array< AgentPoolBase m_PoolList
 
autoptr map< int, int >  m_agentSaveList
 
autoptr map< int, int >  m_agentLoadList
 
PlayerBase  m_Player
 

Constructor & Destructor Documentation

void AgentManager::AgentManager ( PlayerBase  player )
private
void AgentManager::~AgentManager ( )
private

References m_PoolList.

Member Function Documentation

void AgentManager::Attach ( AgentBase  agent,
string  target,
AgentPoolBase  parent 
)
private
void AgentManager::Detach ( AgentBase  agent,
string  target,
AgentPoolBase  home 
)
private
void AgentManager::AddPool ( AgentPoolBase  pool )
private

References m_PoolList.

Referenced by AgentManager().

AgentPoolBase AgentManager::FindPoolByString ( string  pool )
private

References ClassName(), and m_PoolList.

Referenced by Attach(), and Detach().

void AgentManager::AttachByType ( int  agent,
int  value,
bool  triggerEvent = true 
)
private

References m_PoolList.

Referenced by PlayerBase::InsertAgent(), and OnStoreLoad().

void AgentManager::DetachByType ( int  agent,
bool  triggerEvent = true 
)
private

References m_PoolList.

void AgentManager::OnStoreSave ( ParamsWriteContext  ctx )
private
void AgentManager::OnStoreLoad ( ParamsReadContext  ctx )
private
PlayerBase AgentManager::GetPlayer ( )
private

References m_Player.

Referenced by AgentBase::AgentBase(), and AgentPoolBase::Tick().

float AgentManager::GetAgentInvasibility ( int  agent )
private

References m_PoolList.

float AgentManager::GetAgentTransferability ( int  agent )
private
void AgentManager::AddToSaveQueue ( int  agent,
int  count 
)
private

References m_agentSaveList.

Referenced by AgentBase::OnStoreSave().

bool AgentManager::IsAttached ( int  agent )
private

References m_PoolList.

array< int > AgentManager::GetAllAgents ( )
private

References m_PoolList.

Referenced by PlayerBase::GetAgents().

int AgentManager::GetSingleAgentCount ( int  agent )
private

References m_PoolList.

Referenced by PlayerBase::GetSingleAgentCount().

void AgentManager::ImmuneSystemTick ( float  value )
private

References m_PoolList.

Referenced by PlayerBase::ImmuneSystemTick().

int AgentManager::GetAgentInitValue ( int  agent )
private

References m_PoolList.

Referenced by PlayerBase::GetAgentInitValue().

int AgentManager::GetActiveAgentsCount ( )
private

References m_PoolList.

Referenced by ImmuneSystem::OnTick().

Member Data Documentation

autoptr AgentPoolBase AgentManager::m_PoolGeneral
private
autoptr AgentPoolBase AgentManager::m_PoolPlayer
private
autoptr array<AgentPoolBase> AgentManager::m_PoolList
private
autoptr map<int,int> AgentManager::m_agentSaveList
private
autoptr map<int,int> AgentManager::m_agentLoadList
private

Referenced by AgentManager().

PlayerBase AgentManager::m_Player
private

Referenced by AgentManager(), and GetPlayer().


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