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

Detailed Description

DtVreGroundVehicleSetController extends the base set controller functionality specifically for ground vehicles. It provides specialized commands and behavior for ground vehicle entities, allowing them to be controlled as a coordinated set. This controller adds the ability to handle set player control data requests for ground vehicles in VRE-specific contexts.

#include <vreGroundVehicleSetController.h>

Inheritance diagram for makVre::DtVreGroundVehicleSetController:
[legend]

Public Member Functions

 DtVreGroundVehicleSetController (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 
virtual ~DtVreGroundVehicleSetController () override
 
virtual const char * type () const override
 
- Public Member Functions inherited from makVre::DtVreSetController< DtGroundVehicleSetController >
 DtVreSetController (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=nullptr, DtReaderWriterRegistry *parentRegistry=nullptr)
 
 DtVreSetController ()=delete
 
 DtVreSetController (const DtVreSetController &orig)=delete
 
virtual ~DtVreSetController () override
 
const DtVreSetController & operator= (const DtVreSetController &orig)=delete
 
virtual void setRadio (DtSimRadio *radio)
 
virtual void processSetPlayerControlled (DtSimMessage *msg)
 
virtual void processSetDisableOwnershipTransfer (DtSimMessage *msg)
 
virtual void processSetRestore (DtSimMessage *msg)
 
virtual void updatePlayerControlled (const SetVreControlledContent &change)
 
virtual void preFirstTickInit ()
 
virtual void tick ()
 
virtual void processSetAltitude (DtSimMessage *msg)
 
- Public Member Functions inherited from makVre::DtVreSimComponent< DtGroundVehicleSetController >
 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)
 
- Static Public Member Functions inherited from makVre::DtVreSetController< DtGroundVehicleSetController >
static void setPlayerControlledCallback (DtSimMessage *msg, void *usrData)
 
static void setDisableOwnershipTransferCallback (DtSimMessage *msg, void *usrData)
 
static DtSimComponent * creator (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=nullptr, DtReaderWriterRegistry *parentRegistry=nullptr)
 

Private Member Functions

 DtVreGroundVehicleSetController ()
 
 DtVreGroundVehicleSetController (const DtVreGroundVehicleSetController &orig)
 
const DtVreGroundVehicleSetController & operator= (const DtVreGroundVehicleSetController &orig)
 

Additional Inherited Members

- Protected Member Functions inherited from makVre::DtVreSetController< DtGroundVehicleSetController >
void setLastVrfSimStateProperty (const DtString &simAddress)
 
virtual void processPreSave (DtLocalObject::SaveType saveType)
 
virtual void processPostSave (DtLocalObject::SaveType saveType)
 
virtual void sendAssignRolePlayerMessage (const DtString &stationId, const DtString &roleName)
 
bool isEmbarkedRoleAssignment (const DtString &stationId, const std::string &roleType, const std::string &roleName) const
 
virtual bool shouldReplayRestoredRoleAssignment (const DtString &roleName, const DtStatePropertyRoleStationItem &stationItem)
 
virtual void replayRestoredRoleAssignments ()
 
- Protected Attributes inherited from makVre::DtVreSetController< DtGroundVehicleSetController >
bool myWarnedAboutResource
 
bool myObjectWasTransferred
 
DtPropertyInterface * myDetachedRolesStateProperty
 
boost::signals2::connection myOwnershipTransferConn
 
boost::signals2::connection myPreSaveConn
 
boost::signals2::connection myPostSaveConn
 
std::list< SetVreControlledContent > myPendingControlChanges
 

Constructor & Destructor Documentation

◆ DtVreGroundVehicleSetController() [1/3]

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

Constructor.

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

Creates a new ground vehicle set controller component with the specified parameters.

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

◆ ~DtVreGroundVehicleSetController()

virtual makVre::DtVreGroundVehicleSetController::~DtVreGroundVehicleSetController ( )
overridevirtual

Virtual destructor.

Cleans up resources used by the ground vehicle set controller component.

◆ DtVreGroundVehicleSetController() [2/3]

makVre::DtVreGroundVehicleSetController::DtVreGroundVehicleSetController ( )
private

Default constructor (not implemented)

Default constructor is private and not implemented to prevent creation of instances without proper initialization.

◆ DtVreGroundVehicleSetController() [3/3]

makVre::DtVreGroundVehicleSetController::DtVreGroundVehicleSetController ( const DtVreGroundVehicleSetController & orig)
private

Copy constructor (not implemented)

Copy constructor is private and not implemented to prevent copy construction.

References DtVreGroundVehicleSetController().

Member Function Documentation

◆ type()

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

Gets the type identifier for this component.

Returns
String identifying the component type (DtVreGroundVehicleSetControllerType)

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

◆ creator()

static DtSimComponent * makVre::DtVreGroundVehicleSetController::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=()

const DtVreGroundVehicleSetController & makVre::DtVreGroundVehicleSetController::operator= ( const DtVreGroundVehicleSetController & orig)
private

Assignment operator (not implemented)

Returns
Reference to this object

Assignment operator is private and not implemented to prevent assignment.

References DtVreGroundVehicleSetController().


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