Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AITargetClusterState.c File Reference

Go to the source code of this file.

Enumerations

enum  EAITargetClusterState {
  UNINITIALIZED, NONE, INVESTIGATING, ATTACKING,
  DEFENDING, LOST
}
 

Functions

void SCR_AITargetClusterState (SCR_AIGroupTargetCluster cluster)
 
void ProcessTargets ()
 Counts targets and saves them in member variables. More...
 
float GetTimeSinceLastNewInformation ()
 
vector GetCenterPosition ()
 

Variables

enum EAITargetClusterState m_Cluster
 
ref SCR_AIActivityBase m_Activity
 
float m_fTimer_ms = 0
 
float m_fMaxAge_s
 
EAITargetClusterState m_eState = EAITargetClusterState.NONE
 
EAITargetClusterState m_ePrevState = EAITargetClusterState.UNINITIALIZED
 
vector m_vBBMax
 
vector m_vBBMin
 
float m_fRadius
 
float m_fMaxTimestamp
 
int m_iCountDetected
 
int m_iCountIdentified
 
int m_iCountLost
 
int m_iCountDestroyed
 

Enumeration Type Documentation

◆ EAITargetClusterState

State of cluster which represents our processing of it. ClusterState is persistent, while Cluster objects can be created and deleted during their processing, while ClusterState should be passed between Cluster objects which correspond to same actual cluster of targets.

Enumerator
UNINITIALIZED 
NONE 
INVESTIGATING 
ATTACKING 
DEFENDING 
LOST 

Definition at line 6 of file SCR_AITargetClusterState.c.

Function Documentation

◆ GetCenterPosition()

vector GetCenterPosition ( )

Definition at line 109 of file SCR_AITargetClusterState.c.

◆ GetTimeSinceLastNewInformation()

float GetTimeSinceLastNewInformation ( )

Returns time passed since any new information was received from this cluster You must call ProcessTargets first

Definition at line 98 of file SCR_AITargetClusterState.c.

◆ ProcessTargets()

void ProcessTargets ( )

Counts targets and saves them in member variables.

Definition at line 44 of file SCR_AITargetClusterState.c.

◆ SCR_AITargetClusterState()

void SCR_AITargetClusterState ( SCR_AIGroupTargetCluster  cluster)

Definition at line 38 of file SCR_AITargetClusterState.c.

Variable Documentation

◆ m_Activity

ref SCR_AIActivityBase m_Activity

Definition at line 21 of file SCR_AITargetClusterState.c.

◆ m_Cluster

enum EAITargetClusterState m_Cluster

◆ m_ePrevState

◆ m_eState

◆ m_fMaxAge_s

float m_fMaxAge_s

Definition at line 23 of file SCR_AITargetClusterState.c.

◆ m_fMaxTimestamp

float m_fMaxTimestamp

Definition at line 31 of file SCR_AITargetClusterState.c.

◆ m_fRadius

float m_fRadius

Definition at line 30 of file SCR_AITargetClusterState.c.

◆ m_fTimer_ms

float m_fTimer_ms = 0

Definition at line 22 of file SCR_AITargetClusterState.c.

◆ m_iCountDestroyed

int m_iCountDestroyed

Definition at line 35 of file SCR_AITargetClusterState.c.

◆ m_iCountDetected

int m_iCountDetected

Definition at line 32 of file SCR_AITargetClusterState.c.

◆ m_iCountIdentified

int m_iCountIdentified

Definition at line 33 of file SCR_AITargetClusterState.c.

◆ m_iCountLost

int m_iCountLost

Definition at line 34 of file SCR_AITargetClusterState.c.

◆ m_vBBMax

vector m_vBBMax

Definition at line 28 of file SCR_AITargetClusterState.c.

◆ m_vBBMin

vector m_vBBMin

Definition at line 29 of file SCR_AITargetClusterState.c.