Public Member Functions |
| | DtDetonationPdu (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| | DtDetonationPdu (const DtNetDetonationPdu *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| | DtDetonationPdu (const DtEntityIdentifier &attacker, const DtEntityIdentifier &target, const DtEntityIdentifier &munition, const DtEventID &eventId, const DtVector &linVelocity, const DtVector &location, const DtBurstDescriptor &burst, const DtVector &entLocation, DtDetonationResult result, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| | DtDetonationPdu (const DtFireInteraction &fire, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| | Fills in common fields with data from Fire Interaction.
|
| const DtObjectId & | attackerId () const |
| void | setAttackerId (const DtObjectId &id) |
| const DtObjectId & | targetId () const |
| void | setTargetId (const DtObjectId &id) |
| const DtObjectId & | munitionId () const |
| void | setMunitionId (const DtObjectId &id) |
| const DtEventID & | eventId () const |
| void | setEventId (const DtEventID &id) |
| const DtVector & | velocity () const |
| void | setVelocity (const DtVector &velocity) |
| const DtVector & | worldLocation () const |
| void | setWorldLocation (const DtVector &location) |
| const DtVector & | entityLocation () const |
| void | setEntityLocation (const DtVector &location) |
| DtDetonationResult | result () const |
| void | setResult (DtDetonationResult result) |
| DtDetonatorFuze | fuseType () const |
| void | setFuseType (DtDetonatorFuze fuse) |
| const DtEntityType & | munitionType () const |
| void | setMunitionType (const DtEntityType &munType) |
| int | quantity () const |
| void | setQuantity (int quant) |
| int | rate () const |
| void | setRate (int rate) |
| DtWarheadType | warheadType () const |
| void | setWarheadType (DtWarheadType type) |
| const DtBurstDescriptor & | burst () const |
| | NOT USED IN HLA.
|
| void | setBurst (const DtBurstDescriptor &burst) |
| void | setArticulatedParts (const DtArticulatedPartCollection &apList) |
| const DtArticulatedPartCollection & | articulatedParts () const |
| virtual void | printData () const |
| | Print the PDU's data (not including header).
|
| virtual void | printDataToStream (std::ostream &stream) const |
| virtual void | printDataToString (DtString &str) const |
| | DtInteraction () |
| | default constructor
|
| virtual | ~DtInteraction () |
| | destructor
|
| | DtInteraction (const DtInteraction &orig) |
| | copy constructor
|
| DtInteraction & | operator= (const DtInteraction &orig) |
| | assignment operator
|
| virtual | ~DtPdu () |
| | Destructor.
|
| | DtPdu (const DtPdu &pdu, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| | Copy constructor.
|
| DtPdu & | operator= (const DtPdu &pdu) |
| | Assignment operator.
|
| virtual void * | packet () const |
| | Older function that returns a pointer to the network representation.
|
| virtual int | status () const |
| | Get PDU status.
|
| virtual void | setVersion (int vers) |
| | Set/Get protocol version from PDU header.
|
| virtual int | protocolVersion () const |
| virtual void | setExerciseId (int id) |
| | Set/Get exerciseID in PDU header.
|
| virtual int | exerciseId () const |
| virtual DtPduKind | kind () const |
| | Returns PDU kind from PDU header.
|
| virtual DtProtocolFamily | protocolFamily () const |
| | Returns protocol family from PDU header.
|
| virtual void | setTimeStamp (DtTime time, DtTimeStampType type=DtTimeStampRelative) |
| | Set the PDU header's time stamp to reflect time and type.
|
| virtual DtTime | timeStamp () const |
| | Return the time (in seconds past an hour) encoded in the PDU header's time stamp.
|
| virtual DtTimeStampType | timeStampType () const |
| | Return the type of the time stamp, as indicated in PDU header.
|
| virtual DtTime | guessTimeValid (DtTime referenceTime) const |
| | Since timestamp only represents number of seconds past the hour, guessTimeValid chooses the hour that would make the timestamp closest to reference time, and returns a time that is timestamp seconds past that hour.
|
| virtual DtNetPduHeader * | netHeader () const |
| | Returns a pointer to the PDU's header.
|
| virtual void | print () const |
| | Print the contents of the PDU by calling printToStream(DtInfo).
|
| virtual void | printToStream (std::ostream &stream) const |
| | Print the contents of the PDU by calling printHeaderToStream and printDataToStream.
|
| virtual void | printHeader () const |
| | Print the PDU's header. This calls printHeaderToStream(DtInfo).
|
| virtual void | printHeaderToStream (std::ostream &stream) const |
| | Print the PDU's header to a stream.
|
| virtual | ~DtBaseMsg () |
| | Destructor.
|
| | DtBaseMsg (const DtBaseMsg &msg, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| | Copy constructor.
|
| DtBaseMsg & | operator= (const DtBaseMsg &msg) |
| | Assignment.
|
| virtual const char * | netRep () const |
| | Get network representation.
|
| virtual int | length () const |
| | Get size of message.
|
DtDetonationPdu is used to represent the impact or detonation of a munition.