Public Member Functions |
| | DtDetonationDescriptor (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) |
| | constructor
|
| | DtDetonationDescriptor (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) |
| virtual | ~DtDetonationDescriptor () |
| | destructor
|
| | DtDetonationDescriptor (const DtString &name, const DtDetonationDescriptor &orig, DtReaderWriterRegistry *parentRegistry=NULL) |
| | copy constructor
|
| | DtDetonationDescriptor (const DtSymbolString &name, const DtDetonationDescriptor &orig, DtReaderWriterRegistry *parentRegistry=NULL) |
| DtDetonationDescriptor & | operator= (const DtDetonationDescriptor &orig) |
| | assignment operator
|
| virtual DtDetonationDescriptor * | clone (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) const |
| | clone - return a newly created copy of ourself.
|
| virtual DtDetonationDescriptor * | clone (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL) const |
| virtual void | setAttackerId (const DtGlobalObjectDesignator &globalId) |
| | Set/get global Id of attacker (not a reader/writer parameter - attacker object name is stored instead).
|
virtual const
DtGlobalObjectDesignator & | attackerId () const |
| virtual void | setTargetId (const DtGlobalObjectDesignator &globalId) |
| | Set/get global Id of target (not a reader/writer parameter - target object name is stored instead).
|
virtual const
DtGlobalObjectDesignator & | targetId () const |
| virtual void | setEventId (const DtEventId &eventId) |
| | Set/get event Id of detonation (not a reader/writer parameter - useful to identify detonation event during runtime - does not persist across runs, however).
|
| virtual const DtEventId & | eventId () const |
| virtual void | setAttackerName (const DtString &objectName) |
| | Set/get object name of attacker.
|
| virtual const DtString & | attackerName () const |
| virtual void | setTargetName (const DtString &objectName) |
| | Set/get object name of target.
|
| virtual const DtString & | targetName () const |
| virtual void | setVelocity (const DtVector &velocity) |
| | Set/get velocity (world coordinates, meters/second).
|
| virtual const DtVector & | velocity () const |
| virtual void | setEntityLocation (const DtVector &entityLocation) |
| | Set/get location of the detonation in entity coordinates (meters).
|
| virtual const DtVector & | entityLocation () const |
| virtual void | setWorldLocation (const DtVector &worldLocation) |
| | Set/get location of detonation in world coordinates (meters).
|
| virtual const DtVector & | worldLocation () const |
| virtual void | setResult (DtDetonationResult result) |
| | Set/get detonation result (enumeration defined in disEnums.h).
|
| virtual DtDetonationResult | result () const |
| virtual void | setFuzeType (DtDetonatorFuze fuze) |
| | Set/Get the detonator fuze type (enumeration defined in disEnums.h).
|
| virtual DtDetonatorFuze | fuzeType () const |
| virtual void | setMunitionType (const DtEntityType &munType) |
| | Set/get the munition entity type.
|
| virtual const DtEntityType & | munitionType () const |
| virtual void | setQuantity (int quant) |
| | Set/get the quantity of munition rounds.
|
| virtual int | quantity () const |
| virtual void | setRate (int rate) |
| | Set/get the rate (per second).
|
| virtual int | rate () const |
| virtual void | setWarheadType (DtWarheadType type) |
| | Set/get the warhead type (enumeration defined in disEnums.h).
|
| virtual DtWarheadType | warheadType () const |
| virtual void | setArtParts (const DtSimArtPartDescriptorList &artParts) |
| | Set/get the articulated parts list.
|
virtual const
DtSimArtPartDescriptorList & | artParts () const |
| virtual void | setSimTime (DtTime time) |
| | Set/get the simulation time (seconds) at which this detonation occurs.
|
| virtual DtTime | simTime () const |
| | 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) |
| | copy constructor
|
| | DtReaderWriter (const DtSymbolString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) |
| const DtReaderWriter & | operator= (const DtReaderWriter &orig) |
| | assignment operator
|
| virtual | ~DtReaderWriter () |
| | destructor
|
| virtual void | putSelf (FILE *fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| | Top level call to write itself to file.
|
| virtual void | getSelf (DtlObjPtr args, const DtFilename &searchPath=DtFilename::nullFilename(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| | Top level to read itself from an input stream.
|
| virtual void | writeSelf (FILE *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 bool | hasAlias (const DtSymbolString &alias) |
| virtual const aliasContainer & | aliases () const |
| virtual void | setReadonly (bool flag) |
| | Set read-only flag.
|
| virtual bool | isReadonly () const |
| 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 char * | readerWriterType () const |
| | Used to supply a string type that this reader writer type is.
|
| virtual DtString | prettyPrint () const |
| | Routine to return a human readable form of the reader/writer variable.
|
| 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 void | setValueSpecified (bool specified, bool recurse=false) |
| | The specified flags are used for optional values.
|
| virtual bool | valueSpecified () const |
| | The specified flags are used for optional values.
|
| 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 DtSymbolString | variableName () const |
| | The variable name, if this object is a variable reference.
|
| virtual void | setVariableName (const DtSymbolString variableName) |
| | The variable name, if this object is a variable reference.
|
| const DtReaderWriterRegistry & | registry () const |
| | Collection of child DtReaderWriter nodes owned by this object.
|
| DtReaderWriterRegistry & | registry () |
| | Collection of child DtReaderWriter nodes owned by this object.
|
class DtDetonationDescriptor:
Instances of DtDetonationDescriptor are readable/writeable objects used to hold the information needed to construct a DtDetonation object. Note that object names are preserved, rather than object Ids (object names can persist from run to run, while object Ids are only valid during a given run). Also note that simulation time of the detonation is included (not part of a detonation PDU or interaction, but its useful to store the time at which this detonation should occur).