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 
118 
119 
120 
121  virtual DtArticulatedPartCollection* artPartList();
122  virtual const DtArticulatedPartCollection* artPartList() const;
124 
126 
127  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 

Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)