VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
detonationInteractionHLA.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef detonationInteractionHLA_H_
8 #define detonationInteractionHLA_H_
9 
10 #if DtHLA
11 
12 
13 #include "interactionWithEncDec.h"
14 #include "hostStructs.h"
15 #include "eventId.h"
16 
18 
22 
23 class DtExerciseConn;
25 class DtFireInteraction;
26 
27 
28 
31  void* usr);
32 
38 {
39 public:
40 
43 
47 
49  virtual ~DtDetonationInteraction();
50 
53 
56 
58  virtual void printData() const;
59  virtual void printDataToString(DtString& str) const;
60 
62  virtual void printDataToStream(std::ostream& stream) const;
63 
65  virtual void setAttackerId(const DtGlobalObjectDesignator& id);
66  virtual const DtGlobalObjectDesignator& attackerId() const;
67 
69  virtual void setTargetId(const DtGlobalObjectDesignator& id);
70  virtual const DtGlobalObjectDesignator& targetId() const;
71 
73  virtual void setMunitionId(const DtGlobalObjectDesignator& id);
74  virtual const DtGlobalObjectDesignator& munitionId() const;
75 
77  virtual void setEventId(const DtEventID& id);
78  virtual const DtEventID& eventId() const;
79 
81  virtual void setVelocity(const DtVector32& velocity);
82  virtual const DtVector32& velocity() const;
83 
85  virtual void setWorldLocation(const DtVector& location);
86  virtual const DtVector& worldLocation() const;
87 
89  virtual void setEntityLocation(const DtVector32& location);
90  virtual const DtVector32& entityLocation() const;
91 
93  virtual void setResult(DtDetonationResult result);
94  virtual DtDetonationResult result() const;
95 
97  virtual void setFuseType(DtDetonatorFuze fuse);
98  virtual DtDetonatorFuze fuseType() const;
99 
101  virtual void setMunitionType(const DtEntityType& munType);
102  virtual const DtEntityType& munitionType() const;
103 
105  virtual void setQuantity(int quant);
106  virtual int quantity() const;
107 
109  virtual void setRate(int rate);
110  virtual int rate() const;
111 
113  virtual void setWarheadType(DtWarheadType type);
114  virtual DtWarheadType warheadType() const;
115 
117  virtual DtArticulatedPartCollection* artPartList();
122  virtual const DtArticulatedPartCollection* artPartList() const;
124 
126  virtual void setArticulatedParts(const DtArticulatedPartCollection& apList);
128  const DtArticulatedPartCollection& articulatedParts() const;
129  DtArticulatedPartCollection& articulatedParts();
131 
133  virtual const char* name() const;
134 
135 public:
136 
139  static DtInteraction* create();
140 
143  static void addCallback(DtExerciseConn* conn,
144  DtDetonationInteractionCb cb, void* usr,
145  DtDDMRegionSP region = DtDDMRegionSP());
146  static void removeCallback(DtExerciseConn* conn,
147  DtDetonationInteractionCb cb, void* usr,
148  DtDDMRegionSP region = DtDDMRegionSP());
149 
150 protected:
151 
161  int myRate;
166 };
167 
168 #endif
169 #endif
170 
171 
DtInteraction is an abstract base class for representing HLA interactions (or events) (as opposed to ...
Definition: interactionHLA.h:33
Instances of DtDetonationInteraction are used to communicate information associated with the impact o...
Definition: detonationInteractionHLA.h:37
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnHLA.h:58
DtInteractionWithEncDec & operator=(const DtInteractionWithEncDec &orig)
assignment operator
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtGlobalObjectDesignator myTargetId
Definition: detonationInteractionHLA.h:163
This file provides a declaration of the class DtArticulatedPartCollection.
DtEntityType myMunitionType
Definition: detonationInteractionHLA.h:159
DtDetonationResult
Definition: disEnums.h:207
int myRate
Definition: detonationInteractionHLA.h:161
DtVector32 myEntityLocation
Definition: detonationInteractionHLA.h:162
static void removeCallback(DtExerciseConn *conn, const std::set< DtString > *classes, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
DtBoost::shared_ptr< DtDDMRegion > DtDDMRegionSP
Definition: region1516.h:29
DtWarheadType myWarheadType
Definition: detonationInteractionHLA.h:164
DtVector myWorldLocation
Definition: detonationInteractionHLA.h:152
virtual void printData() const
Print the interaction&#39;s data to DtInfo.
Definition: interactionHLA.h:348
A DtArticulatedPartCollection is a collection of articulated parts typically of an entity...
Definition: articulatedPartCollection.h:29
DtEventID myEventId
Definition: detonationInteractionHLA.h:154
virtual void printDataToStream(std::ostream &stream) const
Print the interaction&#39;s data to the stream.
Definition: interactionHLA.h:356
virtual const char * name() const =0
Name of the interaction. (Not necessarily the ClassName from the FOM.)
Definition: vlVector.h:224
DtGlobalObjectDesignator myMunitionId
Definition: detonationInteractionHLA.h:158
Instances of DtFireInteraction are used to represent the firing of a weapon.
Definition: fireInteractionHLA.h:35
DtVector32 myVelocity
Definition: detonationInteractionHLA.h:156
Definition: vlVector.h:162
Represents Events in the RPR FOM.
Definition: eventId.h:52
DtGlobalObjectDesignator myAttackerId
Definition: detonationInteractionHLA.h:155
static void addCallback(DtExerciseConn *conn, const std::set< DtString > *classes, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
Register/Deregister callback function cb with conn, on all interaction class name (char*) contained i...
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
This file provides a declaration of the class DtInteractionWithEncDec.
void(* DtDetonationInteractionCb)(DtDetonationInteraction *inter, void *usr)
Detonation interaction callback function signature.
Definition: detonationInteractionHLA.h:30
DtDetonationResult myResult
Definition: detonationInteractionHLA.h:153
class DtInteractionWithEncDec:
Definition: interactionWithEncDec.h:44
DtDetonatorFuze
SECTION 1.
Definition: disEnums.h:28
Contains the DtEventId class declaration.
Instances of DtString are used to represent strings.
Definition: vlString.h:29
DtDetonatorFuze myFuseType
Definition: detonationInteractionHLA.h:157
DtWarheadType
Definition: disEnums.h:42
DtArticulatedPartCollection myPartList
Definition: detonationInteractionHLA.h:165
int myQuantity
Definition: detonationInteractionHLA.h:160
DtEntityType is used to represent the type an entity object.
Definition: entityType.h:26
virtual void printDataToString(DtString &buff) const
Print the interaction&#39;s data to the string provided.
Definition: interactionHLA.h:352

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)