VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pFireInter.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2014 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <portal/pInteraction.h>
13 #include <vlutil/vlNetTypes.h>
14 #include <vlutil/vlString.h>
15 #include <matrix/vlVector.h>
16 
17 namespace MAKVrExchange
18 {
19 
20  class DtPortalConnection;
21 
29  : public DtPortalInteraction
30  {
31  public:
32 
33  typedef void (*DtPortalFireInteractionCb) (
34  const DtPortalFireInteraction& inter, void* usr );
35 
38 
40  virtual ~DtPortalFireInteraction();
41 
43  static void addCallback( DtPortalConnection* conn,
44  DtPortalFireInteractionCb cb, void* usr );
45 
47  static void removeCallback( DtPortalConnection* conn,
48  DtPortalFireInteractionCb cb, void* usr );
49 
52 
54  DtDEC_ATTRIBUTE(DtString, AttackerId, attackerId);
55 
59  DtDEC_ATTRIBUTE(DtString, TargetId, targetId);
60 
64  DtDEC_ATTRIBUTE(DtString, EntityType, entityType);
65 
67  //
71  DtDEC_ATTRIBUTE(DtString, MunitionType, munitionType);
72 
74  DtDEC_ATTRIBUTE(DtString, MunitionId, munitionId);
75 
77  DtDEC_ATTRIBUTE(DtString, EventId, eventId);
78 
80  DtDEC_ATTRIBUTE(DtU32, WarheadType, warheadType);
81 
83  DtDEC_ATTRIBUTE(DtU32, FireMissionIndex, fireMissionIndex);
84 
86  DtDEC_ATTRIBUTE(DtU32, FuseType, fuseType);
87 
91  DtDEC_ATTRIBUTE(DtU32, Quantity, quantity);
92 
94  DtDEC_ATTRIBUTE(DtU32, Rate, rate);
95 
97  DtDEC_ATTRIBUTE(DtFloat64, Range, range);
98 
100  DtDEC_ATTRIBUTE(DtVector, Location, location);
101 
103  DtDEC_ATTRIBUTE(DtVector, Velocity, velocity);
104 
106 
108  public:
109 
111 
112  static DtPortalMessage* create();
113 
114  virtual unsigned int netSize() const;
115  virtual void writeSelfToBuffer( void* buffer ) const;
116  virtual void readSelfFromBuffer( const void* buffer );
117 
118  virtual std::ostream& printDataToStream( std::ostream& str ) const;
119 
120  };
121 
122 
124  {
125  return new DtPortalFireInteraction();
126  }
127 
128 }

Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)