VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions
DtRwSpawnData Class Reference

Base library for data that is used to control how spawn points generate entities. More...

Inheritance diagram for DtRwSpawnData:
Inheritance graph
[legend]

Public Member Functions

 DtRwSpawnData (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL)
 constructor
 DtRwSpawnData (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL)
 DtRwSpawnData (const DtRwSpawnData &orig, const DtString &name="temp-spawn-data", DtReaderWriterRegistry *parentRegistry=NULL)
 copy constructor
const DtRwSpawnDataoperator= (const DtRwSpawnData &orig)
 assignment operator
virtual ~DtRwSpawnData ()
 Destructor.
virtual const charreaderWriterType () const
 Used to supply a string type that this reader writer type is.
virtual DtString stringRep () const
 Produces a print representation of the template data in str.
virtual const DtUUIDuuid () const
 The unique identifier of this spawn template.
void setUUID (const DtUUID &)
 DO NOT CALL. This is only used for archiving/dearchiving purposes from the network.
virtual const DtStringtemplateDescription () const
 Description of the template.
virtual void setTemplateDescription (const DtString &desc)
virtual const DtStringoverlay () const
 The overlay to place the created simulation objects on. Default is Simulation Objects overlay.
virtual void setOverlay (const DtString &desc)
virtual const DtStringtemplateName () const
 Accessors and mutators for the spawn parameter data.
virtual void setTemplateName (const DtString &name)
virtual bool isTimeBased () const
 Indicates whether spawning activity is restricted to certain times.
virtual void setIsTimeBased (bool isTimeBased)
virtual bool usesClockTime () const
 Indicates whether the start and stop times should be interpreted as clock time (vs.
virtual void setUsesClockTime (bool isClockTime)
virtual void setSpawnStartTime (DtReal t)
 The simulation time when spawning starts; in seconds since start time of simulation.
virtual DtReal spawnStartTime () const
virtual void setSpawnEndTime (DtReal t)
 The simulation time when spawning ends; in seconds since start time of simulation.
virtual DtReal spawnEndTime () const
virtual void setSpawnPeriod (DtReal t)
 The spawn period, in seconds; how much time between spawn events.
virtual DtReal spawnPeriod () const
virtual void setSpawnVariance (DtReal t)
 The random variation in spawn time, as a percentage of the spawn period.
virtual DtReal spawnVariance () const
virtual bool isCyclical () const
 The flag indicates whether the spawning activity is cyclical, i.e.
virtual void setIsCyclical (bool isCyclical)
virtual DtReal cyclePeriod () const
 The period of the cyclical spawning, in seconds.
virtual void setCyclePeriod (DtReal t)
virtual DtReal burstPeriodVariance () const
 The variance of the burst cycle period, in percent of the period.
virtual void setBurstPeriodVariance (DtReal t)
virtual DtReal dutyCycle () const
 The duty cycle of the spawning cycle, as %.
virtual void setDutyCycle (DtReal pct)
virtual DtReal startOffset () const
 The offset from the start of the cycle to the first active time, in seconds.
virtual void setStartOffset (DtReal t)
virtual void setSpawnMaxCount (unsigned t)
 Stop spawning if we have this many entities already.
virtual unsigned spawnMaxCount () const
virtual void setSpecifySpeed (bool)
 Sets whether or not to use the default speed, or the specified min/max speed If default speed is used all entities will be spawned at their default minimum speed.
virtual bool specifySpeed () const
virtual void setSpawnMinSpeed (DtReal t)
 Minimum Speed of Spawn Entity In meters/sec.
virtual DtReal spawnMinSpeed () const
virtual void setSpawnMaxSpeed (DtReal t)
 Maximum Speed of Spawn Entity In meters/sec.
virtual DtReal spawnMaxSpeed () const
virtual void setSpawnObjectTypes (const DtRwObjectTypeInfoList &t)
 Types of objects to spawn.
virtual const
DtRwObjectTypeInfoList
spawnObjectTypes () const
virtual DtRwObjectTypeInfoListspawnObjectTypes ()
virtual void addSpawnObjectType (const DtRwObjectTypeInfo &newType)
virtual void removeSpawnObjectType (const DtRwObjectType &remType)
virtual void removeSpawnObjectType (const DtString &name)
virtual void setCreateOnVectorNetwork (bool t)
 Use Roads?
virtual bool createOnVectorNetwork () const
virtual void setSinkPoints (const DtRwTemplatedUUIDList &t)
 The points (names) to use as sinks (move destinations).
virtual const
DtRwTemplatedUUIDList
sinkPoints () const
 Was: sinkNodeNames.
virtual DtRwTemplatedUUIDListsinkPoints ()
 Was: sinkNodeNames.
virtual bool isInSinkList (const DtUUID &) const
 Indicates whether this name is in the sink node list.
virtual void addSinkNode (const DtUUID &)
 Adds the sink node to the list.
virtual void removeSinkNode (const DtUUID &)
 Removes the sink node identified by uuid.
virtual void setSpawnPoints (const DtRwTemplatedUUIDList &t)
 The points (names) to use as spawn points.
virtual const
DtRwTemplatedUUIDList
spawnPoints () const
virtual DtRwTemplatedUUIDListspawnPoints ()
virtual bool isInSpawnList (const DtUUID &) const
 Indicates whether this name is in the spawn points list.
virtual void addSpawnPoint (const DtUUID &)
 Adds the spawn point to the list.
virtual void removeSpawnPoint (const DtUUID &)
 Removes the spawn point identified by uuid.
virtual const DtPlanentityPlan () const
 The plan that the entity will follow.
virtual void setEntityPlan (const DtPlan &plan)
- Public Member Functions inherited from DtReaderWriter
 DtReaderWriter ()
 default constructor
 DtReaderWriter (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false)
 real constructor Setting the readonly flag prevents object from writing itself to the stream.
 DtReaderWriter (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false)
 DtReaderWriter (const DtString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 pseudo-copy constructor
 DtReaderWriter (const DtSymbolString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 DtReaderWriter (const DtReaderWriter &, DtReaderWriterRegistry *parentRegistry=NULL)
 copy constructor
const DtReaderWriteroperator= (const DtReaderWriter &orig)
 assignment operator
bool operator== (const DtReaderWriter &) const
 Equivalence operator.
bool operator!= (const DtReaderWriter &rhs)
virtual ~DtReaderWriter ()
 destructor
virtual void putSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
 Top level call to write itself to file.
virtual void postPutSelf ()
 Called after either version of put self (file or environment). Default is no-op.
virtual void prePutSelf ()
 Called before either version of put self (file or environment). Default is no-op.
virtual void getSelf (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
 Top level to read itself from an input stream.
virtual void postGetSelf ()
 Called after either version of getSelf (mtl or environment). Default is no-op.
virtual void preGetSelf ()
 Called before either version of get self (file or environment). Default is no-op.
virtual void writeSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
 Called from putSelf, calls myRegistry.putSelf which in turn calls putSelf on each reader/writer in the registry.
virtual DtSymbolString name () const
 Accessor for name of this readable/writable object.
virtual void addAlias (const DtSymbolString &alias)
 Add an alias as an alternative name for this object.
virtual void addAlias (const DtString &alias)
virtual bool hasAlias (const DtSymbolString &alias)
virtual const aliasContaineraliases () const
virtual void setReadonly (bool flag)
 Set read-only flag.
bool isReadonly () const
virtual void reset ()
 For those reader/writer items that support it, resets the reader/writer value to original state Default is no-op.
virtual int alignment () const
 For those items that are sent over the network via HLA, this will give the network alignment.
virtual bool variableIsBound () const
virtual void unbindVariable ()
 Sets the myVariableIsBound flag to false.
virtual void setName (const DtString &)
 Set the name of the object.
virtual const charxmlType () const
virtual DtString prettyPrint () const
 Routine to return a human readable form of the reader/writer variable.
std::string debugText () const
virtual void bindVariables (DtVariableBindingsList variableBindings)
 Runs a variable binding pass on this reader writer and any of its children.
virtual std::list
< DtVariableNameType
unboundVariables () const
bool invalid () const
virtual bool hasChild (const DtReaderWriter *p) const
 Returns true if this variable has a child p in it's chain.
virtual bool hasVariableReference () const
 Returns true if this item or any item in the registry (recursive) is a variable reference.
virtual void bindLocalVariables (const DtVariableBindingsList &variableBindings)
 Checks to see if this RW object is a variable reference that can be bound using the provided bindings.
virtual void recordUpdateTime () const
 Can be implemented in subclasses to stamp the time when updated.
virtual bool wasUpdatedSince (DtTime t) const
 Can be implemented in subclasses to return true if an update occurred after the specified time.
virtual bool changedSinceLastChecked ()
 Returns true if this objects value has changed since the last time this function was called.
virtual bool peekChangedSinceLastChecked () const
 Returns the value that changedSinceLastChecked would return but does not reset the internal flag.
virtual void putData (std::string &fp, int indentLevel=0)
 Deriving class overrides these to get/put class specific data.
virtual DtlObjPtr getData (DtlObjPtr args, const SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
virtual void setValueSpecified (bool specified, bool recurse=false)
 The specified flags are used for optional values.
virtual bool valueSpecified () const
virtual bool isVariableReference () const
 Specifies whether or not this reader writer is really a variable that is specified elsewhere.
virtual void setIsVariableReference (bool value)
virtual void clearAllVariableReferenceFlags ()
 Clears out all variable reference flags from all readerwriter items in registry recursively.
virtual DtSymbolString variableName () const
 The variable name, if this object is a variable reference.
virtual void setVariableName (const DtSymbolString variableName)
virtual const DtReaderWriterdefaultRWValue () const
 The default value to use if the reader/writer object is a variable and that variable is not specified.
virtual DtReaderWriterdefaultRWValue ()
virtual void setDefaultRWValue (DtReaderWriter *)
 Previous default value, if exists, will be removed and replaced with a clone of the supplied variable.
virtual bool checkAndSetDefaultRWValue (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
 Give the stream, if the stream contains a default value then set it here.
const DtReaderWriterRegistryregistry () const
 Collection of child DtReaderWriter nodes owned by this object.
DtReaderWriterRegistryregistry ()
virtual DtPropertyInterfaceproperty ()
virtual const DtPropertyInterfaceproperty () const
virtual DtString toXml () const
virtual bool toXml (const DtFilename &) const
 Writes contents of xml result to the given filename.
virtual bool fromXml (const DtString &)
 Restores object from given xml string. Returns true if valid.
virtual bool fromXmlFile (const DtFilename &)
 Restores object from given xml file.
virtual void putSelf (DtEnvironmentSP, DtEnvValueSP parent) const
virtual void putData (DtEnvironmentSP, DtEnvValueSP value) const
 Override to add attributes of actual data.
virtual void putVariableReference (DtEnvironmentSP, DtEnvValueSP value) const
 Called when the item is a variable reference.
virtual void getSelf (const DtEnvironmentSP, const DtEnvValueSP root, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList())
virtual void getData (const DtEnvironmentSP, const DtEnvValueSP, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList())
 Gets data from the environment value.
virtual void unrecognizedItem (const DtEnvironmentSP env, const DtEnvValueSP root, const SearchPaths &searchPaths, const DtVariableBindingsList &varBindings)
 Called when the xml reader tries to parse an unknown reader/writer item. Default is a no-op.
virtual void getVariableReference (DtEnvironmentSP, DtEnvValueSP value)
 Called when the item is a variable reference.

Protected Member Functions

 DtRwSpawnData ()
 Constructors etc.
- Protected Member Functions inherited from DtReaderWriter
virtual void bindToRwAsVariable (const DtReaderWriter *rw)
 Copies values from the specified DtReaderWriter.
- Protected Member Functions inherited from DtObjectDebugger< DtReaderWriter >
 DtObjectDebugger ()
 DtObjectDebugger (const DtObjectDebugger &)
 ~DtObjectDebugger ()

Protected Attributes

DtRwString mySpawnTemplateName
 These members are saved and loaded in scenario files.
DtRwUUID mySpawnTemplateUUID
DtRwString myDescription
DtRwString myOverlay
DtRwBoolean myIsTimeBased
DtRwBoolean myUsesClockTime
DtRwReal mySpawnStartTime
DtRwReal mySpawnEndTime
DtRwReal mySpawnPeriod
DtRwReal mySpawnVariance
DtRwBoolean myIsCyclical
DtRwReal myCyclePeriod
DtRwReal myCyclePeriodVariance
DtRwReal myDutyCycle
DtRwReal myStartOffset
DtRwUnsigned mySpawnMaxCount
DtRwReal mySpawnMinSpeed
DtRwReal mySpawnMaxSpeed
DtRwObjectTypeInfoList mySpawnObjectTypes
DtRwBoolean myCreateOnVectorNetwork
DtRwTemplatedUUIDList mySinkNodes
DtRwTemplatedUUIDList mySpawnPoints
DtPlan myPlan
DtRwBoolean mySpecifySpeed
- Protected Attributes inherited from DtReaderWriter
const DtSymbolString myName
DtReaderWriterRegistry myRegistry
DtReaderWriterRegistrymyParentRegistry
bool myValueSpecified
bool myReadOnlyFlag
bool myIsVariableReference
DtSymbolString myVariableName
bool myVariableIsBound
DtReaderWritermyDefaultValue
aliasContainer myAliases
 Container for the aliases which represent alternative names for the object.
bool myInvalid
 Set to true if there is a problem reading this item.
bool myChangedFlag
 Set to true when value changes Set to false when value checked with changedSinceLastChecked.

Additional Inherited Members

- Public Types inherited from DtReaderWriter
typedef std::vector
< DtSymbolString
aliasContainer
typedef std::vector
< DtSymbolString >::iterator 
aliasIter
typedef std::vector
< DtSymbolString >
::const_iterator 
aliasConstIter
typedef std::vector< DtFilename > SearchPaths
typedef std::pair
< DtSymbolString, DtString
DtVariableNameType
typedef DtReaderWriterFactory *(* DtReaderWriterFactoryCreatorFcn )()
- Static Public Member Functions inherited from DtReaderWriter
static void putIndent (std::string &fp, int indentLevel)
static const
DtVariableBindingsList
nullVariableReference ()
static void setPostGetSelfCallback (DtGetSelfCallbackFcn fcn, void *usrData)
static void setPrePutSelfCallback (DtPutSelfCallbackFcn fcn, void *usrData)
static void setPutIndent (bool)
static bool putIndent ()
static const chartheXmlType ()
 The type that is used when archiving to an XML stream.
static const DtFilename & appPath ()
 Gets the current working directory.
static void setFactoryCreatorFunction (DtReaderWriterFactoryCreatorFcn fcn)
 Sets the function to create the DtReaderWriterFactory.
static void createReaderWriterFactory ()
static void cleanupFactory ()
static DtReaderWriterFactoryfactory ()
static DtReaderWritercreateFromXmlFile (const DtFilename &, bool createAsProperty=false)
 Given a filename, returns a newly created reader/writer object from the object found within.
static DtReaderWritercreateFromXml (const DtString &, bool createAsProperty=false)
 Given a xml string, returns a newly created reader/writer object from the object found within.
static DtReaderWritercreateFromEnvironment (DtEnvironmentSP, bool createAsProperty=false)
 Given a xml environment, returns a newly created reader/writer object from the object found within.
static DtString getAttribute (DtEnvironmentSP env, const DtString &name, DtEnvValueSP root)
 Gets the named attribute from a DtEnvValueSP.
- Static Protected Attributes inherited from DtReaderWriter
static DtString theUnspecifiedValue
static DtGetSelfCallbackInfo thePostGetSelfCallback
static DtPutSelfCallbackInfo thePrePutSelfCallback
static const DtVariableBindingsList theEmptyVariableBindingsList
static bool theCreatorFcnSet
static DtReaderWriterFactorytheFactory
static
DtReaderWriterFactoryCreatorFcn 
theFactoryCreatorFcn
static bool thePutIndent

Detailed Description

Base library for data that is used to control how spawn points generate entities.

This data structure has three uses:

  1. Defines the parameters of a spawn point, for a spawn controller to use.
  2. Defines the data in a spawn template, which spawn points initially take their data from.
  3. Defines the data in messages to create and update spawn templates and spawn points. For purposes 1 and 2, this class needs to be a DtReaderWriter so it can be read from and saved to [mtl] scenario files. For reading and writing scenario files, there is also a rw-spawn-template-list class defined in vrfmsgs. For purpose 3, it needs to support encode and decode methods so it can be written to a network message.

Constructor & Destructor Documentation

DtRwSpawnData::DtRwSpawnData ( )
protected

Constructors etc.

Default constructor; not implemented.

DtRwSpawnData::DtRwSpawnData ( const DtString name,
DtReaderWriterRegistry parentRegistry = NULL 
)

constructor

DtRwSpawnData::DtRwSpawnData ( const DtSymbolString name,
DtReaderWriterRegistry parentRegistry = NULL 
)
DtRwSpawnData::DtRwSpawnData ( const DtRwSpawnData orig,
const DtString name = "temp-spawn-data",
DtReaderWriterRegistry parentRegistry = NULL 
)

copy constructor

virtual DtRwSpawnData::~DtRwSpawnData ( )
virtual

Destructor.

Member Function Documentation

const DtRwSpawnData& DtRwSpawnData::operator= ( const DtRwSpawnData orig)

assignment operator

virtual const char* DtRwSpawnData::readerWriterType ( ) const
virtual

Used to supply a string type that this reader writer type is.

This can be used in place of dynamic-casting. Also used by the opd editor to determine which type of control to create

Reimplemented from DtReaderWriter.

virtual DtString DtRwSpawnData::stringRep ( ) const
virtual

Produces a print representation of the template data in str.

virtual const DtString& DtRwSpawnData::templateName ( ) const
virtual

Accessors and mutators for the spawn parameter data.

The [short] name of the template. For a point, this is the template that this spawn object should take its parameter values from. If the template name is null, then the parameter values come from the remaining fields in the class.

virtual void DtRwSpawnData::setTemplateName ( const DtString name)
virtual
virtual const DtUUID& DtRwSpawnData::uuid ( ) const
virtual

The unique identifier of this spawn template.

void DtRwSpawnData::setUUID ( const DtUUID )

DO NOT CALL. This is only used for archiving/dearchiving purposes from the network.

virtual const DtString& DtRwSpawnData::templateDescription ( ) const
virtual

Description of the template.

A user can note something about the types of entities this templates spawns, or whatever.

virtual void DtRwSpawnData::setTemplateDescription ( const DtString desc)
virtual
virtual const DtString& DtRwSpawnData::overlay ( ) const
virtual

The overlay to place the created simulation objects on. Default is Simulation Objects overlay.

virtual void DtRwSpawnData::setOverlay ( const DtString desc)
virtual
virtual bool DtRwSpawnData::isTimeBased ( ) const
virtual

Indicates whether spawning activity is restricted to certain times.

virtual void DtRwSpawnData::setIsTimeBased ( bool  isTimeBased)
virtual
virtual bool DtRwSpawnData::usesClockTime ( ) const
virtual

Indicates whether the start and stop times should be interpreted as clock time (vs.

sim time).

virtual void DtRwSpawnData::setUsesClockTime ( bool  isClockTime)
virtual
virtual void DtRwSpawnData::setSpawnStartTime ( DtReal  t)
virtual

The simulation time when spawning starts; in seconds since start time of simulation.

virtual DtReal DtRwSpawnData::spawnStartTime ( ) const
virtual
virtual void DtRwSpawnData::setSpawnEndTime ( DtReal  t)
virtual

The simulation time when spawning ends; in seconds since start time of simulation.

virtual DtReal DtRwSpawnData::spawnEndTime ( ) const
virtual
virtual void DtRwSpawnData::setSpawnPeriod ( DtReal  t)
virtual

The spawn period, in seconds; how much time between spawn events.

virtual DtReal DtRwSpawnData::spawnPeriod ( ) const
virtual
virtual void DtRwSpawnData::setSpawnVariance ( DtReal  t)
virtual

The random variation in spawn time, as a percentage of the spawn period.

I.e., for a spawn period of 6 seconds: a variance of 100 means that the time between spawns varies uniformly between 0 and 12 seconds; a variance of 50 means that the time between spawns varies uniformly between 3 and 9 seconds.

virtual DtReal DtRwSpawnData::spawnVariance ( ) const
virtual
virtual bool DtRwSpawnData::isCyclical ( ) const
virtual

The flag indicates whether the spawning activity is cyclical, i.e.

has bursts with periods of inactivity between bursts. If not, activity is continuous.Indicates that spawn activity is cyclical.

virtual void DtRwSpawnData::setIsCyclical ( bool  isCyclical)
virtual
virtual DtReal DtRwSpawnData::cyclePeriod ( ) const
virtual

The period of the cyclical spawning, in seconds.

virtual void DtRwSpawnData::setCyclePeriod ( DtReal  t)
virtual
virtual DtReal DtRwSpawnData::burstPeriodVariance ( ) const
virtual

The variance of the burst cycle period, in percent of the period.

I.e., for a cycle period of 6 minutes: a variance of 100 means that the time between bursts varies uniformly between 0 and 12 minutes; a variance of 50 means that the time between bursts varies uniformly between 3 and 9 minutes.

virtual void DtRwSpawnData::setBurstPeriodVariance ( DtReal  t)
virtual
virtual DtReal DtRwSpawnData::dutyCycle ( ) const
virtual

The duty cycle of the spawning cycle, as %.

I.e. period of 60 seconds, duty cycle of 20 means that spawning happens for 12 seconds and then no spawning occurs for 48 seconds, and then the cycle is repeated.

virtual void DtRwSpawnData::setDutyCycle ( DtReal  pct)
virtual
virtual DtReal DtRwSpawnData::startOffset ( ) const
virtual

The offset from the start of the cycle to the first active time, in seconds.

In the example above, an offset of 15 means from the start time, there is no spawning for 15 seconds, then spawning occurs for 12 seconds, then none for 48 seconds, etc.

virtual void DtRwSpawnData::setStartOffset ( DtReal  t)
virtual
virtual void DtRwSpawnData::setSpawnMaxCount ( unsigned  t)
virtual

Stop spawning if we have this many entities already.

virtual unsigned DtRwSpawnData::spawnMaxCount ( ) const
virtual
virtual void DtRwSpawnData::setSpecifySpeed ( bool  )
virtual

Sets whether or not to use the default speed, or the specified min/max speed If default speed is used all entities will be spawned at their default minimum speed.

Default is false

virtual bool DtRwSpawnData::specifySpeed ( ) const
virtual
virtual void DtRwSpawnData::setSpawnMinSpeed ( DtReal  t)
virtual

Minimum Speed of Spawn Entity In meters/sec.

virtual DtReal DtRwSpawnData::spawnMinSpeed ( ) const
virtual
virtual void DtRwSpawnData::setSpawnMaxSpeed ( DtReal  t)
virtual

Maximum Speed of Spawn Entity In meters/sec.

virtual DtReal DtRwSpawnData::spawnMaxSpeed ( ) const
virtual
virtual void DtRwSpawnData::setSpawnObjectTypes ( const DtRwObjectTypeInfoList t)
virtual

Types of objects to spawn.

virtual const DtRwObjectTypeInfoList& DtRwSpawnData::spawnObjectTypes ( ) const
virtual
virtual DtRwObjectTypeInfoList& DtRwSpawnData::spawnObjectTypes ( )
virtual
virtual void DtRwSpawnData::addSpawnObjectType ( const DtRwObjectTypeInfo newType)
virtual
virtual void DtRwSpawnData::removeSpawnObjectType ( const DtRwObjectType remType)
virtual
virtual void DtRwSpawnData::removeSpawnObjectType ( const DtString name)
virtual
virtual void DtRwSpawnData::setCreateOnVectorNetwork ( bool  t)
virtual

Use Roads?

virtual bool DtRwSpawnData::createOnVectorNetwork ( ) const
virtual
virtual void DtRwSpawnData::setSinkPoints ( const DtRwTemplatedUUIDList t)
virtual

The points (names) to use as sinks (move destinations).

Was: setSinkNodeNames

virtual const DtRwTemplatedUUIDList& DtRwSpawnData::sinkPoints ( ) const
virtual

Was: sinkNodeNames.

virtual DtRwTemplatedUUIDList& DtRwSpawnData::sinkPoints ( )
virtual

Was: sinkNodeNames.

virtual bool DtRwSpawnData::isInSinkList ( const DtUUID ) const
virtual

Indicates whether this name is in the sink node list.

virtual void DtRwSpawnData::addSinkNode ( const DtUUID )
virtual

Adds the sink node to the list.

Makes a copy of the argument before adding.

virtual void DtRwSpawnData::removeSinkNode ( const DtUUID )
virtual

Removes the sink node identified by uuid.

virtual void DtRwSpawnData::setSpawnPoints ( const DtRwTemplatedUUIDList t)
virtual

The points (names) to use as spawn points.

virtual const DtRwTemplatedUUIDList& DtRwSpawnData::spawnPoints ( ) const
virtual
virtual DtRwTemplatedUUIDList& DtRwSpawnData::spawnPoints ( )
virtual
virtual bool DtRwSpawnData::isInSpawnList ( const DtUUID ) const
virtual

Indicates whether this name is in the spawn points list.

virtual void DtRwSpawnData::addSpawnPoint ( const DtUUID )
virtual

Adds the spawn point to the list.

Makes a copy of the argument before adding.

virtual void DtRwSpawnData::removeSpawnPoint ( const DtUUID )
virtual

Removes the spawn point identified by uuid.

virtual const DtPlan& DtRwSpawnData::entityPlan ( ) const
virtual

The plan that the entity will follow.

If this plan is empty, a hard-coded default plan will be used instead (which is to move to a sink point and delete self).

virtual void DtRwSpawnData::setEntityPlan ( const DtPlan plan)
virtual

Member Data Documentation

DtRwString DtRwSpawnData::mySpawnTemplateName
protected

These members are saved and loaded in scenario files.

DtRwUUID DtRwSpawnData::mySpawnTemplateUUID
protected
DtRwString DtRwSpawnData::myDescription
protected
DtRwString DtRwSpawnData::myOverlay
protected
DtRwBoolean DtRwSpawnData::myIsTimeBased
protected
DtRwBoolean DtRwSpawnData::myUsesClockTime
protected
DtRwReal DtRwSpawnData::mySpawnStartTime
protected
DtRwReal DtRwSpawnData::mySpawnEndTime
protected
DtRwReal DtRwSpawnData::mySpawnPeriod
protected
DtRwReal DtRwSpawnData::mySpawnVariance
protected
DtRwBoolean DtRwSpawnData::myIsCyclical
protected
DtRwReal DtRwSpawnData::myCyclePeriod
protected
DtRwReal DtRwSpawnData::myCyclePeriodVariance
protected
DtRwReal DtRwSpawnData::myDutyCycle
protected
DtRwReal DtRwSpawnData::myStartOffset
protected
DtRwUnsigned DtRwSpawnData::mySpawnMaxCount
protected
DtRwReal DtRwSpawnData::mySpawnMinSpeed
protected
DtRwReal DtRwSpawnData::mySpawnMaxSpeed
protected
DtRwObjectTypeInfoList DtRwSpawnData::mySpawnObjectTypes
protected
DtRwBoolean DtRwSpawnData::myCreateOnVectorNetwork
protected
DtRwTemplatedUUIDList DtRwSpawnData::mySinkNodes
protected
DtRwTemplatedUUIDList DtRwSpawnData::mySpawnPoints
protected
DtPlan DtRwSpawnData::myPlan
protected
DtRwBoolean DtRwSpawnData::mySpecifySpeed
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)