22#include <vrfmodel/lasingController.h>
67 DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
79 virtual const char*
type()
const override;
93 virtual void tick()
override;
113 static DtSimComponent*
creator(
const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
114 DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
178 virtual bool lineOfSight(DtSimObjectReference target, DtString& reason)
override;
virtual makVre::DtVreMessageResult handleStartLasingLocation(makVre::DtVreMessage *msg)
Handles messages to start lasing at a specific location.
virtual void processSetLaserCodeRequestMessage(DtSimMessage *msg) override
Processes laser code change requests.
virtual makVre::DtVreMessageResult handleSetLasingLocation(makVre::DtVreMessage *msg)
Handles messages to set a new lasing location.
const DtVreLasingController & operator=(const DtVreLasingController &orig)
Assignment operator (not implemented)
virtual void preFirstTickInit() override
Performs initialization before the first simulation tick.
virtual makVre::DtVreMessageResult handleStopLasingLocation(makVre::DtVreMessage *msg)
Handles messages to stop lasing.
static void setRestoreCallback(DtSimMessage *msg, void *usrData)
Callback for entity restoration events.
DtVreLasingController(const DtVreLasingController &orig)
Copy constructor (not implemented)
virtual void tick() override
Updates the controller state each simulation frame.
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.
bool myPlayerIsLasing
Flag indicating whether the player is currently lasing.
Definition vreLasingController.h:185
virtual void processSetRestore(DtSimMessage *msg)
Processes entity restoration messages.
DtVreLasingController()
Default constructor (not implemented)
virtual const char * type() const override
Gets the type identifier for this component.
virtual bool init() override
Initializes the lasing controller.
DtVreLasingController(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Constructor.
virtual bool lineOfSight(DtSimObjectReference target, DtString &reason) override
Determines if the controller has line of sight to a target.
virtual ~DtVreLasingController() override
Virtual destructor.
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
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
const char DtVreLasingControllerType[]
Type identifier for the VRE lasing controller component.
Definition vreLasingController.h:34
Defines the base class for all VREngage messages.
Base template class for VR-Engage simulation components.