VR-Engage  2.3
Loading...
Searching...
No Matches
makVre::DtVreLaserGuidedLauncherController Class Reference

Detailed Description

DtVreLaserGuidedLauncherController extends the base integrated laser guided launcher with support for "lock on after launch" mode. This controller is specifically designed to be used with the VRE_Fire_Missile lua task and supports advanced laser-guided weapon functionality such as post-launch target designation and acquisition.

#include <vreLaserGuidedLauncherController.h>

Inheritance diagram for makVre::DtVreLaserGuidedLauncherController:
[legend]

Public Member Functions

 DtVreLaserGuidedLauncherController (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *compDesc=0, DtReaderWriterRegistry *parentRegistry=0)
 
virtual ~DtVreLaserGuidedLauncherController () override
 
virtual const char * type () const override
 
 DtVreLaserGuidedLauncherController ()=delete
 
 DtVreLaserGuidedLauncherController (const DtVreLaserGuidedLauncherController &orig)=delete
 
DtVreLaserGuidedLauncherController & operator= (const DtVreLaserGuidedLauncherController &orig)=delete
 
- Public Member Functions inherited from makVre::DtVreSimComponent< DtIntegratedLaserGuidedLauncherController >
 DtVreSimComponent (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 
virtual ~DtVreSimComponent ()
 
bool isPlayerControlled (const std::string &role="") const
 
std::vector< std::string > controllingStations (const std::string &role) const
 
std::vector< std::string > engagedRoles () const
 
DtString entitySystemName () const
 

Static Public Member Functions

static DtSimComponent * creator (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 

Protected Member Functions

virtual void processFireLaserGuidedMissileTask (DtSimMessage *msg) override
 

Constructor & Destructor Documentation

◆ DtVreLaserGuidedLauncherController() [1/3]

makVre::DtVreLaserGuidedLauncherController::DtVreLaserGuidedLauncherController ( const DtString & name,
DtLocalObject * owner,
DtSimulationServices * simManager,
DtComponentDescriptor * compDesc = 0,
DtReaderWriterRegistry * parentRegistry = 0 )

Constructor.

Parameters
nameThe name of this component
ownerThe local object that owns this component
simManagerThe simulation services manager
compDescComponent descriptor with configuration parameters
parentRegistryOptional parent registry for reader/writer functionality

Creates a new laser guided launcher controller with the specified parameters.

Referenced by DtVreLaserGuidedLauncherController(), and operator=().

◆ ~DtVreLaserGuidedLauncherController()

virtual makVre::DtVreLaserGuidedLauncherController::~DtVreLaserGuidedLauncherController ( )
overridevirtual

Virtual destructor.

Cleans up resources used by the laser guided launcher controller.

◆ DtVreLaserGuidedLauncherController() [2/3]

makVre::DtVreLaserGuidedLauncherController::DtVreLaserGuidedLauncherController ( )
delete

Default constructor (not implemented)

◆ DtVreLaserGuidedLauncherController() [3/3]

makVre::DtVreLaserGuidedLauncherController::DtVreLaserGuidedLauncherController ( const DtVreLaserGuidedLauncherController & orig)
delete

Copy constructor (not implemented)

References DtVreLaserGuidedLauncherController().

Member Function Documentation

◆ type()

virtual const char * makVre::DtVreLaserGuidedLauncherController::type ( ) const
overridevirtual

Gets the type identifier for this component.

Returns
String identifying the component type (DtVreLaserGuidedLauncherControllerType)

Implements the DtSimComponent::type() method to return the type identifier for this component.

◆ creator()

static DtSimComponent * makVre::DtVreLaserGuidedLauncherController::creator ( const DtString & name,
DtLocalObject * owner,
DtSimulationServices * simManager,
DtComponentDescriptor * desc = 0,
DtReaderWriterRegistry * parentRegistry = 0 )
static

Factory method to create a new instance of this component.

Parameters
nameThe name for the new component
ownerThe local object that will own this component
simManagerThe simulation services manager
descOptional component descriptor
parentRegistryOptional parent registry for reader/writer functionality
Returns
Pointer to the newly created component

Static factory method used by the component creation system to instantiate new instances of this component type.

◆ operator=()

DtVreLaserGuidedLauncherController & makVre::DtVreLaserGuidedLauncherController::operator= ( const DtVreLaserGuidedLauncherController & orig)
delete

Assignment operator (not implemented)

References DtVreLaserGuidedLauncherController().

◆ processFireLaserGuidedMissileTask()

virtual void makVre::DtVreLaserGuidedLauncherController::processFireLaserGuidedMissileTask ( DtSimMessage * msg)
overrideprotectedvirtual

Synchronizes this launcher's laser code from the tracked designator before firing.

The fire-laser-guided-missile task identifies the launcher but does not carry a laser code. When a gimbaled sensor is tracking a designator, use its existing trackingCode state property to configure only this selected launcher before the base task handler starts firing.

Parameters
msgThe received fire-laser-guided-missile task message.

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