VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions
DtWarfareComponent Class Reference
+ Collaboration diagram for DtWarfareComponent:

Public Member Functions

 DtWarfareComponent (DtVehicleSim *owner, DtExerciseConn *conn, DtReflectedEntityList *rel, DtEntityPublisher *entPub, DtEntityStateRepository *esr)
 Construct a warfare component bound to a vehicle and its state/network context. More...
 
 ~DtWarfareComponent ()
 Destructor. More...
 
void fireMunition (const DtGlobalObjectDesignator &tg)
 Fire and detonation interface delegated from DtVehicleSim. More...
 
void detonateMunition ()
 Immediately detonate the currently active munition (if any) More...
 
void tick ()
 Per-frame update driving munition timing and scheduled detonation. More...
 
void processDetonation (DtDetonationInteraction *detInter)
 Reaction to detonation interactions affecting the owning vehicle. More...
 
int checkDetonation (DtDetonationInteraction *detInter)
 Evaluate whether an incoming detonation is lethal for this vehicle. More...
 

Static Public Member Functions

static void theDetonationCb (DtDetonationInteraction *inter, void *self)
 Static callback handler registered with DtDetonationInteraction. More...
 

Private Attributes

DtVehicleSim * myOwner
 Owning vehicle, shared context, and entity state used for fire/detonations. More...
 
DtExerciseConn * myExConn
 Owning vehicle, shared context, and entity state used for fire/detonations. More...
 
DtReflectedEntityList * myRel
 Owning vehicle, shared context, and entity state used for fire/detonations. More...
 
DtEntityPublisher * myEntityPub
 Owning vehicle, shared context, and entity state used for fire/detonations. More...
 
DtEntityStateRepository * myESR
 Owning vehicle, shared context, and entity state used for fire/detonations. More...
 
DtFireInteraction * myFire
 Current outgoing fire interaction and scheduled detonation time. More...
 
DtTime myDetonateTime
 Owning vehicle, shared context, and entity state used for fire/detonations. More...
 

Constructor & Destructor Documentation

DtWarfareComponent::DtWarfareComponent ( DtVehicleSim *  owner,
DtExerciseConn *  conn,
DtReflectedEntityList *  rel,
DtEntityPublisher *  entPub,
DtEntityStateRepository *  esr 
)

Construct a warfare component bound to a vehicle and its state/network context.

DtWarfareComponent::~DtWarfareComponent ( )

Destructor.

Member Function Documentation

int DtWarfareComponent::checkDetonation ( DtDetonationInteraction *  detInter)

Evaluate whether an incoming detonation is lethal for this vehicle.

void DtWarfareComponent::detonateMunition ( )

Immediately detonate the currently active munition (if any)

void DtWarfareComponent::fireMunition ( const DtGlobalObjectDesignator &  tg)

Fire and detonation interface delegated from DtVehicleSim.

Initiate a fire interaction against the specified target

void DtWarfareComponent::processDetonation ( DtDetonationInteraction *  detInter)

Reaction to detonation interactions affecting the owning vehicle.

Handle an incoming detonation interaction

static void DtWarfareComponent::theDetonationCb ( DtDetonationInteraction *  inter,
void *  self 
)
static

Static callback handler registered with DtDetonationInteraction.

void DtWarfareComponent::tick ( )

Per-frame update driving munition timing and scheduled detonation.

Member Data Documentation

DtTime DtWarfareComponent::myDetonateTime
private

Owning vehicle, shared context, and entity state used for fire/detonations.

DtEntityPublisher* DtWarfareComponent::myEntityPub
private

Owning vehicle, shared context, and entity state used for fire/detonations.

DtEntityStateRepository* DtWarfareComponent::myESR
private

Owning vehicle, shared context, and entity state used for fire/detonations.

DtExerciseConn* DtWarfareComponent::myExConn
private

Owning vehicle, shared context, and entity state used for fire/detonations.

DtFireInteraction* DtWarfareComponent::myFire
private

Current outgoing fire interaction and scheduled detonation time.

DtVehicleSim* DtWarfareComponent::myOwner
private

Owning vehicle, shared context, and entity state used for fire/detonations.

DtReflectedEntityList* DtWarfareComponent::myRel
private

Owning vehicle, shared context, and entity state used for fire/detonations.


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

Document ID: Generated on Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)