Public Types |
| enum | { PduStaticSize = 104
} |
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 |
Static Public Member Functions |
| static DtPdu * | create (const DtNetPacket *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| static void | addCallback (DtExerciseConn *conn, DtDetonationInteractionCb cb, void *usr) |
| static void | removeCallback (DtExerciseConn *conn, DtDetonationInteractionCb cb, void *usr) |
Protected Member Functions |
| DtPduKind | internalGetPduKind () const |
| | Returns the PDU kind associated with the derived PDU class.
|
Protected Attributes |
| DtObjectId | att |
| DtObjectId | tar |
| DtObjectId | mun |
| DtEventID | event |
| DtVector | vel |
| DtVector | world |
| DtVector | ent |
| DtBurstDescriptor | theBurst |
| DtEntityType | myMunType |
| DtArticulatedPartCollection | myArtPartCollection |
DtDetonationPdu is used to represent the impact or detonation of a munition.