Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIGroupPerception Class Reference
Inheritance diagram for SCR_AIGroupPerception:

Protected Member Functions

void SCR_AIGroupPerception (SCR_AIGroupUtilityComponent utility, SCR_AIGroup group)
ScriptInvokerBase< SCR_AIOnTargetClusterStateDeletedGetOnTargetClusterDeleted ()
ScriptInvokerBase< SCR_AIGroupPerceptionOnEnemyDetectedGetOnEnemyDetected ()
ScriptInvokerBase< SCR_AIGroupPerceptionOnEnemyDetectedFilteredGetOnEnemyDetectedFiltered ()
ScriptInvokerBase< SCR_AIGroupPerceptionOnNoEnemyGetOnNoEnemy ()
void RemoveTarget (IEntity enemy)
void RemoveTarget (int id)
SCR_AITargetInfo AddOrUpdateTarget (notnull BaseTarget target, out bool outNewTarget)
void AddOrUpdateGunshot (notnull IEntity shooter, vector worldPos, Faction faction, float timestamp, bool endangering)
void Update ()
void UpdateTargetsFromMembers ()
void MaintainTargets ()
void ClusterTargets ()
void GenerateClusters (array< ref SCR_AITargetInfo > targets, array< ref SCR_AIGroupTargetCluster > outClusters, vector centerPos, float minAngularDist)
int GetClusterAssociation (SCR_AIGroupTargetCluster a, SCR_AIGroupTargetCluster b)
void SelectMostDangerousCluster ()
float CalculateClusterDangerScore (SCR_AIGroupTargetCluster c)
void DeleteClusterState (SCR_AIGroupTargetCluster c)
void TransferClusterState (SCR_AIGroupTargetCluster oldCluster, SCR_AIGroupTargetCluster newCluster)
int GetTargetClusterStateId (SCR_AITargetClusterState s)
void DiagPrintClusterAssociation (array< ref array< int > > association)
void DiagDrawClusters ()

Protected Attributes

SCR_AIGroup m_Group
SCR_AIGroupUtilityComponent m_Utility
ref ScriptInvokerBase< SCR_AIOnTargetClusterStateDeletedEvent_OnTargetClusterStateDeleted = new ScriptInvokerBase<SCR_AIOnTargetClusterStateDeleted>()
ref ScriptInvokerBase< SCR_AIGroupPerceptionOnEnemyDetectedEvent_OnEnemyDetected
ref ScriptInvokerBase< SCR_AIGroupPerceptionOnEnemyDetectedFilteredEvent_OnEnemyDetectedFiltered
ref ScriptInvokerBase< SCR_AIGroupPerceptionOnNoEnemyEvent_OnNoEnemy
ref array< IEntitym_aTargetEntities = new array<IEntity>
ref array< ref SCR_AITargetInfo > m_aTargets = new array<ref SCR_AITargetInfo>
ref array< ref SCR_AIGroupTargetClusterm_aTargetClusters = {}
SCR_AIGroupTargetCluster m_MostDangerousCluster

Detailed Description

Definition at line 13 of file SCR_AIGroupPerception.c.

Constructor & Destructor Documentation

◆ SCR_AIGroupPerception()

void SCR_AIGroupPerception::SCR_AIGroupPerception ( SCR_AIGroupUtilityComponent utility,
SCR_AIGroup group )
inlineprotected

Definition at line 37 of file SCR_AIGroupPerception.c.

Member Function Documentation

◆ AddOrUpdateGunshot()

void SCR_AIGroupPerception::AddOrUpdateGunshot ( notnull IEntity shooter,
vector worldPos,
Faction faction,
float timestamp,
bool endangering )
inlineprotected

Definition at line 179 of file SCR_AIGroupPerception.c.

◆ AddOrUpdateTarget()

SCR_AITargetInfo SCR_AIGroupPerception::AddOrUpdateTarget ( notnull BaseTarget target,
out bool outNewTarget )
inlineprotected

Definition at line 107 of file SCR_AIGroupPerception.c.

◆ CalculateClusterDangerScore()

float SCR_AIGroupPerception::CalculateClusterDangerScore ( SCR_AIGroupTargetCluster c)
inlineprotected

Definition at line 570 of file SCR_AIGroupPerception.c.

◆ ClusterTargets()

void SCR_AIGroupPerception::ClusterTargets ( )
inlineprotected

Definition at line 346 of file SCR_AIGroupPerception.c.

◆ DeleteClusterState()

void SCR_AIGroupPerception::DeleteClusterState ( SCR_AIGroupTargetCluster c)
inlineprotected

Definition at line 591 of file SCR_AIGroupPerception.c.

◆ DiagDrawClusters()

void SCR_AIGroupPerception::DiagDrawClusters ( )
inlineprotected

Definition at line 632 of file SCR_AIGroupPerception.c.

◆ DiagPrintClusterAssociation()

void SCR_AIGroupPerception::DiagPrintClusterAssociation ( array< ref array< int > > association)
inlineprotected

Definition at line 615 of file SCR_AIGroupPerception.c.

◆ GenerateClusters()

void SCR_AIGroupPerception::GenerateClusters ( array< ref SCR_AITargetInfo > targets,
array< ref SCR_AIGroupTargetCluster > outClusters,
vector centerPos,
float minAngularDist )
inlineprotected

Definition at line 449 of file SCR_AIGroupPerception.c.

◆ GetClusterAssociation()

int SCR_AIGroupPerception::GetClusterAssociation ( SCR_AIGroupTargetCluster a,
SCR_AIGroupTargetCluster b )
inlineprotected

Definition at line 537 of file SCR_AIGroupPerception.c.

◆ GetOnEnemyDetected()

ScriptInvokerBase< SCR_AIGroupPerceptionOnEnemyDetected > SCR_AIGroupPerception::GetOnEnemyDetected ( )
inlineprotected

Definition at line 50 of file SCR_AIGroupPerception.c.

◆ GetOnEnemyDetectedFiltered()

ScriptInvokerBase< SCR_AIGroupPerceptionOnEnemyDetectedFiltered > SCR_AIGroupPerception::GetOnEnemyDetectedFiltered ( )
inlineprotected

This is similar to OnEnemyDetected event, but it will be invoked only once per group perception update, You should use this if you don't need every detected target, but need to know when anything has been detected

Definition at line 61 of file SCR_AIGroupPerception.c.

◆ GetOnNoEnemy()

ScriptInvokerBase< SCR_AIGroupPerceptionOnNoEnemy > SCR_AIGroupPerception::GetOnNoEnemy ( )
inlineprotected

Definition at line 70 of file SCR_AIGroupPerception.c.

◆ GetOnTargetClusterDeleted()

ScriptInvokerBase< SCR_AIOnTargetClusterStateDeleted > SCR_AIGroupPerception::GetOnTargetClusterDeleted ( )
inlineprotected

Definition at line 44 of file SCR_AIGroupPerception.c.

◆ GetTargetClusterStateId()

int SCR_AIGroupPerception::GetTargetClusterStateId ( SCR_AITargetClusterState s)
inlineprotected

Definition at line 604 of file SCR_AIGroupPerception.c.

◆ MaintainTargets()

void SCR_AIGroupPerception::MaintainTargets ( )
inlineprotected

Definition at line 309 of file SCR_AIGroupPerception.c.

◆ RemoveTarget() [1/2]

void SCR_AIGroupPerception::RemoveTarget ( IEntity enemy)
inlineprotected

Definition at line 79 of file SCR_AIGroupPerception.c.

◆ RemoveTarget() [2/2]

void SCR_AIGroupPerception::RemoveTarget ( int id)
inlineprotected

Definition at line 96 of file SCR_AIGroupPerception.c.

◆ SelectMostDangerousCluster()

void SCR_AIGroupPerception::SelectMostDangerousCluster ( )
inlineprotected

Definition at line 551 of file SCR_AIGroupPerception.c.

◆ TransferClusterState()

void SCR_AIGroupPerception::TransferClusterState ( SCR_AIGroupTargetCluster oldCluster,
SCR_AIGroupTargetCluster newCluster )
inlineprotected

Definition at line 598 of file SCR_AIGroupPerception.c.

◆ Update()

void SCR_AIGroupPerception::Update ( )
inlineprotected

Definition at line 214 of file SCR_AIGroupPerception.c.

◆ UpdateTargetsFromMembers()

void SCR_AIGroupPerception::UpdateTargetsFromMembers ( )
inlineprotected

Definition at line 224 of file SCR_AIGroupPerception.c.

Member Data Documentation

◆ Event_OnEnemyDetected

ref ScriptInvokerBase<SCR_AIGroupPerceptionOnEnemyDetected> SCR_AIGroupPerception::Event_OnEnemyDetected
protected

Definition at line 27 of file SCR_AIGroupPerception.c.

◆ Event_OnEnemyDetectedFiltered

ref ScriptInvokerBase<SCR_AIGroupPerceptionOnEnemyDetectedFiltered> SCR_AIGroupPerception::Event_OnEnemyDetectedFiltered
protected

Definition at line 28 of file SCR_AIGroupPerception.c.

◆ Event_OnNoEnemy

ref ScriptInvokerBase<SCR_AIGroupPerceptionOnNoEnemy> SCR_AIGroupPerception::Event_OnNoEnemy
protected

Definition at line 29 of file SCR_AIGroupPerception.c.

◆ Event_OnTargetClusterStateDeleted

ref ScriptInvokerBase<SCR_AIOnTargetClusterStateDeleted> SCR_AIGroupPerception::Event_OnTargetClusterStateDeleted = new ScriptInvokerBase<SCR_AIOnTargetClusterStateDeleted>()
protected

Definition at line 26 of file SCR_AIGroupPerception.c.

◆ m_aTargetClusters

ref array<ref SCR_AIGroupTargetCluster> SCR_AIGroupPerception::m_aTargetClusters = {}
protected

Definition at line 33 of file SCR_AIGroupPerception.c.

◆ m_aTargetEntities

ref array<IEntity> SCR_AIGroupPerception::m_aTargetEntities = new array<IEntity>
protected

Definition at line 31 of file SCR_AIGroupPerception.c.

◆ m_aTargets

ref array<ref SCR_AITargetInfo> SCR_AIGroupPerception::m_aTargets = new array<ref SCR_AITargetInfo>
protected

Definition at line 32 of file SCR_AIGroupPerception.c.

◆ m_Group

SCR_AIGroup SCR_AIGroupPerception::m_Group
protected

Definition at line 23 of file SCR_AIGroupPerception.c.

◆ m_MostDangerousCluster

SCR_AIGroupTargetCluster SCR_AIGroupPerception::m_MostDangerousCluster
protected

Definition at line 34 of file SCR_AIGroupPerception.c.

◆ m_Utility

SCR_AIGroupUtilityComponent SCR_AIGroupPerception::m_Utility
protected

Definition at line 24 of file SCR_AIGroupPerception.c.


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