VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pVrfScriptedTask.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/dllExport.h>
13 #include <portal/pInteraction.h>
14 
15 namespace MAKVrExchange
16 {
17 
18  class DtPortalConnection;
19 
22 
26  : public DtPortalInteraction
27  {
28  public:
29 
31  {
32  Unknown = 0,
33  AggregateFormation = 1,
34  AltitudeMSL = 2,
35  BombResource = 3,
36  Boolean = 4,
37  ChoiceDropDownList = 5,
38  ChoiceOptionButton = 6,
39  DIGuyAnimation = 7,
40  DIGuyAppearance = 8,
41  Distance = 9,
42  Emitter = 10,
43  EntityType = 11,
44  Force = 12,
45  Heading = 13,
46  Integer = 14,
47  LocationWithAltitude = 15,
48  LocationWithoutAltitude = 16,
49  MunitionResource = 17,
50  OffsetLocation = 18,
51  Real = 19,
52  Resource = 20,
53  SimulationObjectSingle = 21,
54  SimulationObjectMultiple = 22,
55  Speed = 23,
56  String = 24,
57  Time = 25,
58  TurnRate = 26,
59  DepthMSL = 27
60  };
61 
62  // structure of data values in the avpl
63  struct MsgHeader {
64  DtU32 type;
65  };
66 
67  struct MsgInt {
69  int value;
70  };
71 
72  struct MsgDouble {
74  double value;
75  };
76 
77  struct MsgString {
79  int len;
80  };
81 
82  struct MsgVector {
84  DtVector value;
85  };
86 
87  public:
88 
90  typedef void (*functionCallback_type) (
91  const DtPortalVrfScriptedTaskInteraction& interaction, void* userData );
92 
95 
98 
100  static void addCallback( DtPortalConnection* connection,
101  functionCallback_type callbackFunction, void* userData );
102 
104  static void removeCallback( DtPortalConnection* connection,
105  functionCallback_type callbackFunction, void* userData );
106 
109 
110  DtDEC_ATTRIBUTE( DtString, OriginatingEntity, originatingEntity );
111  DtDEC_ATTRIBUTE( DtString, ReceivingEntity, receivingEntity );
112  DtDEC_ATTRIBUTE( DtString, ScriptID, scriptID );
113  DtDEC_ATTRIBUTE( bool, Subtask, subtask);
114  DtDEC_ATTRIBUTE( DtAttributeValuePairList, VariableDatumSet, variableDatumSet );
115 
117 
119  public:
120 
122 
123  static DtPortalMessage* create();
124 
125  virtual unsigned int netSize() const;
126  virtual void writeSelfToBuffer( void* buffer ) const;
127  virtual void readSelfFromBuffer( const void* buffer );
128 
129  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
130 
131  private:
132 
136 
138  bool operator == ( const DtPortalVrfScriptedTaskInteraction& ) const;
139 
141  bool operator != ( const DtPortalVrfScriptedTaskInteraction& ) const;
142 
143  };
144 
145 
147  {
149  }
150 
151 }

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)