VR-Exchange 2.2 API Documentation
pDetonationInter.h
Go to the documentation of this file.
1 /*********************************************************************
2  ** Copyright (c) 1992-2010 VT MAK
3  ** All rights reserved.
4  *********************************************************************/
5 
6 #ifndef pDetonationInter_H_
7 #define pDetonationInter_H_
8 
12 
13 
15 #include <vlutil/vlString.h>
16 #include <vlutil/vlNetTypes.h>
17 #include <matrix/vlVector.h>
18 #include <vlpi/articulatedPartCollection.h>
19 
20 namespace MAKVrExchange {
21 
22 class DtPortalConnection;
23 
26 //
30 {
31 public:
32 
33  typedef void (*DtPortalDetonationInteractionCb)
34  (const DtPortalDetonationInteraction &inter, void *usr);
35 
36 public:
37 
40 
43 
46 
48  //
49  DtDEC_ATTRIBUTE(DtString, AttackerId, attackerId);
50 
52  DtDEC_ATTRIBUTE(DtString, TargetId, targetId);
53 
55  DtDEC_ATTRIBUTE(DtString, MunitionId, munitionId );
56 
58  //
61  DtDEC_ATTRIBUTE(DtString, MunitionType, munitionType);
62 
64  DtDEC_ATTRIBUTE(DtString, EventId, eventId );
65 
67  DtDEC_ATTRIBUTE(DtVector, Velocity, velocity);
68 
70  DtDEC_ATTRIBUTE(DtVector, WorldLocation, worldLocation);
71 
74  DtDEC_ATTRIBUTE(DtVector, EntityLocation, entityLocation);
75 
77  DtDEC_ATTRIBUTE(DtU32, Result, result );
78 
80  DtDEC_ATTRIBUTE(DtU32, FuseType, fuseType );
81 
83  //
85  DtDEC_ATTRIBUTE(DtU32, Quantity, quantity );
86 
88  DtDEC_ATTRIBUTE(DtU32, Rate, rate);
89 
91  DtDEC_ATTRIBUTE(DtU32, WarheadType, warheadType );
92 
94  DtDEC_ATTRIBUTE(DtU32, TargetsEngaged, targetsEngaged);
95 
97  DtDEC_ATTRIBUTE(DtArticulatedPartCollection, ArticulatedPartList, articulatedPartList);
98 
100  DtDEC_ATTRIBUTE(DtString, MissionId, missionId );
101 
104  DtDEC_ATTRIBUTE(DtU8, HitAimPoint, hitAimPoint );
105 
108  DtDEC_ATTRIBUTE(DtVector, RelativeBulletLocation, relativeBulletLocation );
109 
111  DtDEC_ATTRIBUTE(DtU8, WeaponFailCode, weaponFailCode );
112 
114  DtDEC_ATTRIBUTE(DtString, IntendedTarget, intendedTarget );
115 
117 
118 public:
119 
120  virtual DtPortalMessageKind kind() const;
121  virtual const char * interactionKindName() const { return "Detonation"; }
122  virtual unsigned int netSize() const;
123  virtual void writeSelfToBuffer(void *buffer) const ;
124  virtual void readSelfFromBuffer(const void *buffer);
125  virtual std::ostream &printDataToStream(std::ostream &str) const;
126 
127 
128 
129 public:
130 
132 
133  static DtPortalMessage *create();
134 
135  static void addCallback(DtPortalConnection *conn,
136  DtPortalDetonationInteractionCb cb, void *usr);
137  static void removeCallback(DtPortalConnection *conn,
138  DtPortalDetonationInteractionCb cb, void *usr);
139 
140 };
141 }
142 
143 #endif //end #ifndef pDetonationInter_H_

Document ID: Generated on Mon Apr 15 17:15:50 EDT 2013 from SVN revision 126154
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)