47 virtual bool createPSR();
51 virtual const char*
type()
const;
57 virtual void setDesiredLocation(
const DtVector&);
60 virtual void setDesiredSpeed(
const DtVector& velocity,
const DtVector& acceleration);
62 virtual void setDesiredRotationalVelocity(
const DtVector&);
65 virtual void setDesiredOrientation(
const DtTaitBryan&);
82 static void scriptedMovementTaskCallback(
DtSimMessage* msg,
void* usr);
83 virtual void processScriptedMovementTask(
DtSimMessage* msg);
92 virtual void finishUp();
93 virtual void sendDetonation();
121 static void animatedMovementTaskCallback(
DtSimMessage* msg,
void* usr );
122 virtual void processAnimatedMovementTask(
DtSimMessage* msg );
126 virtual int detonationResultFromDistance(
double d,
const DtVector& detonationPosition,
const DtEntityType& targetType )
const;
131 virtual bool createNegateSpeedPort();
136 virtual void setupInitialState();
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtBooleanOutputPort * myNegateSpeedPort
Output Port Name: is-action-speed-negated Output Port Description: Indicates that the speed used for ...
Definition: scriptedMovementController.h:164
virtual const char * type() const override=0
Returns a string identifies the class type of component. Type values are defined in compTypes...
Instances of DtBooleanOutputPort are output ports through which data producers can send boolean data...
Definition: boolIOPort.h:45
bool myInitialized
Definition: scriptedMovementController.h:152
Definition: fireEvent.h:16
virtual void registerTaskMsgCallbacks()
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:22
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
Definition: readerWriter.h:85
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
DtMovementLocalObjectFacade myMovementLocalObjectFacade
Definition: scriptedMovementController.h:167
DtScriptedMovementControllerPSR is the process state repository for the scripted movement controller...
Definition: scriptedMovementControllerPSR.h:22
bool myCompleteNextTick
Definition: scriptedMovementController.h:166
This controller will process the scripted movement message to move the object along the scripted path...
Definition: scriptedMovementController.h:21
virtual void updateTaskVisualizations()
Called to update task visualizations after every tick. Implemented by subclasses. ...
Definition: simComponent.h:437
virtual bool init() override
Calls setRadio()
DtScriptedMovementControllerPSR * myProcessState
Definition: scriptedMovementController.h:150
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
virtual bool tickWhileDestroyed() const
If the component returns true here, it will be ticked regardless of the destroyed state of the host e...
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
virtual bool createPortGroups()
Called by init. Derived classes should override this method to create all their input/output port gro...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:95
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
virtual void clearTask() override
If component is currently tasked, calls clearPendingSubtasks(), sets the tasked flag to false...
DtSimObjectReference myTargetPoint
Definition: scriptedMovementController.h:151
virtual DtScriptedMovementControllerPSR * getPSR()
Gets the process state repository for purposes of providing attributes.
Definition: scriptedMovementController.h:70
DtUpdateRepositoryOutputPortGroup is a data port group of a data consumer that contains methods and p...
Definition: updateRepositoryOutputPortGroup.h:31
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86
DtUpdateRepositoryOutputPortGroup * myUpdateRepositoryOutputPortGroup
Used to update repository with any movement data. As long as this controller has control of this port...
Definition: scriptedMovementController.h:156