void enable()
Lifecycle control for IFF transponder and interrogator.
DtReflectedEntityList * myRel
Owning vehicle, shared context, publishers, and reflected objects.
Definition: iffComponent.h:100
DtExerciseConn * myExConn
Owning vehicle, shared context, publishers, and reflected objects.
Definition: iffComponent.h:99
Instances of DtIffPublisher are used to take care of the details associated with publishing the state...
Definition: iffPublisherDIS.h:41
Instances of DtReflectedIff represent Iff object simulated by remote applications.
Definition: reflectedIffDIS.h:34
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnDIS.h:63
void sendLethalInterrogation(const DtGlobalObjectDesignator &tg)
Send a lethal IFF interrogation to a specific target entity.
DtReflectedIffList * myRefIffList
IFF publishers and list of reflected IFF objects in the exercise.
Definition: iffComponent.h:108
DtIffPublisher * myIffInterrogatorPub
IFF publishers and list of reflected IFF objects in the exercise.
Definition: iffComponent.h:107
Part of the F18 example.
Definition: f18/vehicleSim.h:29
static void iffRemovedCb(DtReflectedIff *obj, void *userData)
Callback when a reflected IFF object is removed from the list.
void disable()
Disable the IFF transponder and interrogator publishers.
static void printIff(DtReflectedIff *obj, void *userData)
Optional callback for printing reflected IFF state when it changes.
void processLethalInterrogation(DtInterrogationInteraction *inter)
Internal processing helpers and state accessors.
Definition: iffComponent.h:28
void toggleLethal()
Toggle lethal interrogation capability.
static void iffAddedCb(DtReflectedIff *obj, void *userData)
Callback when a reflected IFF object is added to the list.
void disableLethal()
Disable lethal (Mode 5) interrogation capability.
Instances of DtIffAtcNavaidsPdu are used to send information about simulated radio transponders and i...
Definition: iffAtcNavaidsPdu.h:74
DtIffPublisher * myIffTransponderPub
IFF publishers and list of reflected IFF objects in the exercise.
Definition: iffComponent.h:106
void sendMode5Interrogation(const DtGlobalObjectDesignator &tg)
Send a non-lethal Mode 5 interrogation to a specific target entity.
Instances of DtEntityStateRepository are used to maintain attributes and state of entity objects in a...
Definition: entityStateRepository.h:42
DtVehicleSim * myOwner
Owning vehicle, shared context, publishers, and reflected objects.
Definition: iffComponent.h:98
~DtIffComponent()
Destructor.
Instances of this class provide a protocol independent interface to a list of reflected entities in a...
Definition: reflectedEntityListDIS.h:31
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
This file provides protocol to independence DtExerciseConn.
static void theLethalInterrogationCb(DtInterrogationInteraction *inter, void *self)
Static callbacks used to hook IFF interactions and reflected IFF objects.
static void theIffReplyCb(DtReplyInteraction *inter, void *self)
Callback used to receive replies to interrogations.
void processInterrogationReply(DtReplyInteraction *inter)
Process replies to interrogations sent by this component.
Instances of this class provide a protocol independent interface to a list of reflected emitters in a...
Definition: reflectedIffListDIS.h:28
void toggle()
Toggle IFF system on or off.
DtIffComponent(DtVehicleSim *owner, DtExerciseConn *conn, DtReflectedEntityList *rel, DtEntityStateRepository *esr)
Construct an IFF component bound to a vehicle and its state/network context.
void enableLethal()
Control and use lethal (Mode 5) interrogation capability.
bool myEnabled
Local flags controlling IFF and lethal-mode state.
Definition: iffComponent.h:112
DtEntityStateRepository * myESR
Owning vehicle, shared context, publishers, and reflected objects.
Definition: iffComponent.h:101
void tick(double dt)
Per-frame update; publishes IFF state when enabled.
bool myLethalEnabled
Definition: iffComponent.h:113
bool enabled() const
Return true if the IFF system is enabled.
Definition: iffComponent.h:74
bool lethalEnabled() const
Return true if lethal interrogation is enabled.
Definition: iffComponent.h:76