19#include <vrfobjcore/simObjectReference.h>
21#include <boost/signals2.hpp>
73 DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
86 virtual const char*
type()
const override;
93 virtual bool init()
override;
105 static DtSimComponent*
creator(
const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
106 DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Factory method to create a new instance of this component.
virtual ~DtVreBullseyeController() override
Virtual destructor.
const DtVreBullseyeController & operator=(const DtVreBullseyeController &orig)
Assignment operator (not implemented)
DtVreBullseyeController(const DtVreBullseyeController &orig)
Copy constructor (not implemented)
bool myIsPlayerControlled
Flag tracking the entity's player-controlled state.
Definition vreBullseyeController.h:170
virtual bool init() override
Initializes the bullseye controller.
DtVreBullseyeController()
Default constructor (not implemented)
DtVreBullseyeController(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Constructor.
void processSimObjectAdded(DtSimObjectReference simObject)
Processes simulation object added events.
void processSimObjectToBeRemoved(DtSimObjectReference simObject)
Processes simulation object removal events.
boost::signals2::scoped_connection mySimObjectAddedConnection
Connection for simulation object added events.
Definition vreBullseyeController.h:176
virtual makVre::DtVreMessageResult handleSetBullseyeId(makVre::DtVreMessage *message)
Handles bullseye ID set messages from the user.
virtual void tick() override
Updates the controller state each simulation frame.
virtual const char * type() const override
Gets the type identifier for this component.
void setNewBullseye(DtSimObjectReference simObject)
Sets a new bullseye target and updates its location.
DtRwSimObjectReference myBullseyeEntity
Reference to the currently selected bullseye entity.
Definition vreBullseyeController.h:163
void updateLocation(DtSimObjectReference simObject)
Updates the BullseyeLocation state data with the entity's position.
boost::signals2::scoped_connection mySimObjectDeletedConnection
Connection for simulation object deleted events.
Definition vreBullseyeController.h:182
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
DtVreSimComponent(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Definition vreSimComponent.h:54
Defines export macros for the vreVrfmodel library.
#define VREVRFMODEL_DLL
Definition export.h:22
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
const char DtVreBullseyeControllerType[]
Type identifier for the VRE bullseye controller component.
Definition vreBullseyeController.h:33
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Defines the base class for all VREngage messages.
Base template class for VR-Engage simulation components.