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

#include <vreDiGuyController.h>

Inheritance diagram for makVre::DtVreDiGuyController:
[legend]

Public Member Functions

 DtVreDiGuyController (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 
virtual ~DtVreDiGuyController () override
 
virtual const char * type () const override
 
virtual void tick () override
 
- Public Member Functions inherited from makVre::DtVreSimComponent< DtDiGuyController >
 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)
 

Private Member Functions

 DtVreDiGuyController ()
 
 DtVreDiGuyController (const DtVreDiGuyController &orig)
 
const DtVreDiGuyController & operator= (const DtVreDiGuyController &orig)
 

Constructor & Destructor Documentation

◆ DtVreDiGuyController() [1/3]

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

Constructor Creates a new DiGuy controller component with the specified parameters.

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

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

◆ ~DtVreDiGuyController()

virtual makVre::DtVreDiGuyController::~DtVreDiGuyController ( )
overridevirtual

Virtual destructor Cleans up resources used by the DiGuy controller component.

◆ DtVreDiGuyController() [2/3]

makVre::DtVreDiGuyController::DtVreDiGuyController ( )
private

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

◆ DtVreDiGuyController() [3/3]

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

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

References DtVreDiGuyController().

Member Function Documentation

◆ type()

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

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

Returns
String identifying the component type (DtVreDIGuyControllerType)

◆ creator()

static DtSimComponent * makVre::DtVreDiGuyController::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 Static factory method used by the component creation system to instantiate new instances of this component type.

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

◆ tick()

virtual void makVre::DtVreDiGuyController::tick ( )
overridevirtual

Updates the controller state each simulation frame Overridden to give up animation control when the entity is player-controlled. This allows player inputs to directly control animation states rather than having the AI controller determine animations.

◆ operator=()

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

Assignment operator (not implemented) Assignment operator is private and not implemented to prevent assignment.

Returns
Reference to this object

References DtVreDiGuyController().


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