46 virtual bool createPSR();
50 virtual const char*
type()
const;
56 virtual void setDesiredLocation(
const DtVector&);
59 virtual void setDesiredSpeed(
const DtVector& velocity,
const DtVector& acceleration);
61 virtual void setDesiredRotationalVelocity(
const DtVector&);
64 virtual void setDesiredOrientation(
const DtTaitBryan&);
81 static void scriptedMovementTaskCallback(
DtSimMessage* msg,
void* usr);
82 virtual void processScriptedMovementTask(
DtSimMessage* msg);
91 virtual void finishUp();
92 virtual void sendDetonation();
120 static void animatedMovementTaskCallback(
DtSimMessage* msg,
void* usr );
121 virtual void processAnimatedMovementTask(
DtSimMessage* msg );
125 virtual int detonationResultFromDistance(
double d,
const DtVector& detonationPosition,
const DtEntityType& targetType )
const;
130 virtual bool createNegateSpeedPort();
135 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:163
Instances of DtBooleanOutputPort are output ports through which data producers can send boolean data...
Definition: boolIOPort.h:45
bool myInitialized
Definition: scriptedMovementController.h:151
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:20
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
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual bool init()
Calls setRadio()
DtScriptedMovementControllerPSR is the process state repository for the scripted movement controller...
Definition: scriptedMovementControllerPSR.h:22
bool myCompleteNextTick
Definition: scriptedMovementController.h:165
virtual void clearTask()
If component is currently tasked, calls clearPendingSubtasks(), sets the tasked flag to false...
This controller will process the scripted movement message to move the object along the scripted path...
Definition: scriptedMovementController.h:20
virtual void updateTaskVisualizations()
Called to update task visualizations after every tick. Implemented by subclasses. ...
Definition: simComponent.h:436
DtScriptedMovementControllerPSR * myProcessState
Definition: scriptedMovementController.h:149
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:89
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
DtSimObjectReference myTargetPoint
Definition: scriptedMovementController.h:150
virtual DtScriptedMovementControllerPSR * getPSR()
Gets the process state repository for purposes of providing attributes.
Definition: scriptedMovementController.h:69
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:155