16 #include <vlutil/vlNetTypes.h>
79 virtual const DtUUID& route()
const;
82 virtual void setRoute(
const DtUUID&);
96 virtual void setStartAtClosestPoint(
bool startAtClosestPoint);
97 virtual bool startAtClosestPoint()
const;
104 virtual void setSpeed(
double v);
105 virtual double speed()
const;
106 virtual bool isSpeedSpecified()
const;
113 virtual void setContinueFlag(
bool flag);
114 virtual bool continueFlag()
const;
122 virtual void setFinalSpeed(
const double s);
123 virtual double finalSpeed()
const;
124 virtual bool isFinalSpeedSpecified()
const;
131 virtual bool setFromNet(
const char* contentBuffer,
unsigned contentSize)
override;
230 virtual bool setFromNet(
const char* contentBuffer,
unsigned contentSize)
override;
236 virtual void setTimeOnTarget(
double timeOnTarget);
237 virtual double timeOnTarget()
const;
238 virtual bool isTimeOnTargetSpecified()
const;
240 virtual void setTimeOnTargetPosition(
double timeOnTargetPosition);
241 virtual double timeOnTargetPosition()
const;
242 virtual bool isTimeOnTargetPositionSpecified()
const;
244 virtual void setAbandonTaskIfTimeOnTargetNotAchievable(
bool b);
245 virtual bool abandonTaskIfTimeOnTargetNotAchievable()
const;
247 virtual void setHoldPosition(
double loiterPosition);
248 virtual double holdPosition()
const;
249 virtual bool isHoldPositionSpecified()
const;
UUID is a unique ID wrapper class.
Definition: uuid.h:59
virtual DtString stringRep() const override
Get a readable string representation of this task.
DtRwBoolean myStartAtClosestPoint
Definition: moveAlongTasks.h:148
!!!!!!!!!!!!!!!!! DtMoveAlongRetrogradeTask Same as move to task but will be handled a bit differentl...
Definition: moveAlongTasks.h:157
Definition: rwRouteActionList.h:19
static DtSimTask * creator()
virtual int netRepSize() const override
Returns the size of the full network representation (control object name included) padded to an 8-byt...
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
virtual DtSimTask * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const =0
Make a copy of this task. Returns a newly allocated instance of a DtSimTask. Override this member fun...
DtRwRouteActionList myActionList
Definition: moveAlongTasks.h:264
uuid class
Definition: rwUUID.h:26
!!!!!!!!!!!!!!!!! DtMoveAlongWithActionsTask Move along task with a list of sets and tasks ...
Definition: moveAlongTasks.h:192
DtRwUUID myRoute
Definition: moveAlongTasks.h:146
DtIteratorDirection
Definition: iteratorBase.h:23
DtRwBoolean myAbandonTaskIfTimeOnTargetNotAchievable
Definition: moveAlongTasks.h:263
virtual DtSimTask * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const override
Creates a copy of this move-along task.
DtRwReal myFinalSpeed
Definition: moveAlongTasks.h:151
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets mySubtask member from the incoming contentBuffer (cast to type DtNetSimTask). Derived classes should call down to this function first, and then extract their own data starting at the location contentBuffer + DtSimTask::netRepSize().
const DtMoveAlongTask & operator=(const DtMoveAlongTask &orig)
assignment operator
DtRwReal myTimeOnTargetPosition
Definition: moveAlongTasks.h:261
DtMoveAlongTask represents a Move Along Route task for an entity to perform. It inherits read/writabl...
Definition: moveAlongTasks.h:46
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual bool setToNet()
Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimTask*...
DtRwBoolean myContinueFlag
Definition: moveAlongTasks.h:150
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
DtRwReal myLoiterPosition
Definition: moveAlongTasks.h:262
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwReal mySpeed
Definition: moveAlongTasks.h:149
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
virtual bool isOneClick() const override
If this is true this task supports one click execution. By default this is false. ...
Definition: moveAlongTasks.h:139
DtSimTask is an abstract base class from which real tasks can derive. It manages the read/write capab...
Definition: simTask.h:30
Definition: routeAction.h:35
virtual DtString stringRep() const =0
Returns a human-readable string representation of the task. This string representation is used to dis...
const DtSimTask & operator=(const DtSimTask &orig)
assignment operator; same as copy constructor
virtual bool setToNet() override
Fills in the network buffer (created by base class simTask) with the task contents.
DtRwReal myTimeOnTarget
Definition: moveAlongTasks.h:260
virtual const DtSimTaskMessageType & type() const override
Returns "move-along".
DtRwInt myTraversalDirection
Definition: moveAlongTasks.h:147
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize) override
Fills in the task from the network buffer.
virtual const DtSimTaskMessageType & type() const =0
What kind of task am I? Returns a string indicating the kind of task (for example, “move-to”, “follow-entity”). Derived classes must implement this member function to return a unique string representing the type of task. The set of standard task types supplied with VR-Forces is in taskTypes.h.
virtual int netRepSize() const
Returns the size in bytes of the network representation of the class. This is the size in bytes of th...
virtual bool isOneClick() const override
If this is true this task supports one click execution. By default this is false. ...
Definition: moveAlongTasks.h:254