18#include "vreVrfModel/vreSimComponent.h"
22#include <vrfmodel/embarkationController.h>
24class DtHumanStateRepository;
51 DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
64 virtual const char*
type()
const override;
76 static DtSimComponent*
creator(
const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
77 DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
85 virtual void tick()
override;
virtual void completeDisembarkationInformationRequest(const DtIfEmbarkationInformation *disembarkInfo) override
Handles disembarkation information receipt and clearance to disembark.
bool myWeaponStateCached
Flag indicating whether weapon state is cached.
Definition vreEmbarkationController.h:180
virtual void restoreWeaponState()
Restores the cached weapon state after disembarkation.
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.
const DtVreEmbarkationController & operator=(const DtVreEmbarkationController &orig)
Assignment operator (not implemented)
virtual void updateLifeformEmbarkedAppearanceAndAnimation(int slotNum, const DtString &animationHintName) override
Updates lifeform appearance and animation when embarked.
virtual DtVector fallbackOffloadPoint() override
Provides a fallback disembarkation position.
virtual const char * type() const override
Gets the type identifier for this component.
DtVreEmbarkationController()
Default constructor (not implemented)
virtual ~DtVreEmbarkationController() override
Virtual destructor.
DtVreEmbarkationController(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Constructor.
DtVreEmbarkationController(const DtVreEmbarkationController &orig)
Copy constructor (not implemented)
virtual bool init() override
Initializes the embarkation controller.
virtual void processSimObjectDeleted(DtSimObjectReference simObject)
Handles simulation object deletion events.
DtString myHandItem
Cached hand item from before embarkation.
Definition vreEmbarkationController.h:174
boost::signals2::scoped_connection mySimObjectDeletedConnection
Connection for simulation object deleted events.
Definition vreEmbarkationController.h:192
bool myAmInSlotPosition
Flag indicating whether entity is in its embarkation slot.
Definition vreEmbarkationController.h:186
DtVreVrfEmbarkationPSR * myVreEmbarkPSR
Pointer to the VRE embarkation process state repository.
Definition vreEmbarkationController.h:162
virtual void cacheWeaponState()
Caches the current weapon state before embarkation.
DtWeaponState myUnembarkedWeaponState
Cached weapon state from before embarkation.
Definition vreEmbarkationController.h:168
virtual void preFirstTickInit() override
Performs initialization before the first simulation tick.
virtual void completeEmbarkationInformationRequest(const DtIfEmbarkationInformation *embarkInfo) override
Handles embarkation information receipt and clearance to embark.
virtual void tick() override
Updates the controller state each simulation frame.
DtVreSimComponent(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Definition vreSimComponent.h:54
Extended embarkation process state repository for VREngage.
Definition vreVrfEmbarkationPSR.h:32
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 DtVreEmbarkationControllerType[]
Type identifier for the VRE embarkation controller component.
Definition vreEmbarkationController.h:29
Embarkation process state repository for VREngage.