VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
influenceInterDecoderHLA.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2017 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtHLA
13 
14 #include <vl/interactionDecoder.h>
16 
18 
21 #define DtDECLARE_INFLUENCE_PARAM_DECODER(paramName) \
22  DtDECLARE_PARAM_DECODER(DtInfluenceInteraction, paramName)
23 
24 #define DtDEFINE_SIMPLE_INFLUENCE_PARAM_DECODER( \
25  paramName, netType, mutator) \
26  DtDEFINE_SIMPLE_PARAM_DECODER( \
27  DtInfluenceInterDecoder, DtInfluenceInteraction, \
28  paramName, netType, mutator)
29 
30 #define DtDEFINE_SIMPLE_INFLUENCE_STRING_PARAM_DECODER( \
31  paramName, mutator) \
32  void DtInfluenceInterDecoder::decode##paramName(DtInfluenceInteraction* inter, \
33  const RTI::ParameterHandleValuePairSet& params, \
34  int index) \
35 { \
36  RTI::ULong length = 0; \
37  char* buf = (char*) params.getValuePointer(index, length); \
38  DtString val(buf, length); \
39  inter->mutator(val); \
40 }
41 
42 
47 {
48 public:
50  DtInfluenceInterDecoder(DtExerciseConn* exConn,
51  DtInterClassDesc* classDesc);
52 
54  virtual ~DtInfluenceInterDecoder();
55 
58 
60  DtInfluenceInterDecoder& operator=(const DtInfluenceInterDecoder& orig);
61 
62 protected:
63 
65  DtDECLARE_INFLUENCE_PARAM_DECODER(InfluenceName);
66 
68  DtDECLARE_INFLUENCE_PARAM_DECODER(InfluenceType);
69 
72 
75 
78 
81 
84 
86  DtDECLARE_INFLUENCE_PARAM_DECODER(StopInfluence);
87 
90 
92  DtDECLARE_INFLUENCE_PARAM_DECODER(ProbabilityKilled);
93 
95  DtDECLARE_INFLUENCE_PARAM_DECODER(ProbabilityCaptured);
96 
98  DtDECLARE_INFLUENCE_PARAM_DECODER(ProbabilityWounded);
99 
102 
104  DtDECLARE_INFLUENCE_PARAM_DECODER(GuidanceSystem);
105 
108 
110  DtDECLARE_INFLUENCE_PARAM_DECODER(IsPointAttack);
111 
112 };
113 
114 #endif // DtHLA
#define DtDECLARE_INFLUENCE_PARAM_DECODER(paramName)
This can be used to declare parameter processor functions which are static members of a class...
Definition: influenceInterDecoderHLA.h:21
Definition: targetConfigurationDialog.h:35
Instances of DtInfluenceInterDecoder are used to decode data from the network into DtInfluenceInter o...
Definition: influenceInterDecoderHLA.h:46
Instances of DtInfluenceInter are used to store state data for Influence interactions.
Definition: influenceInteractionHLA.h:27
#define DT_DLL_vrfExtObjects
Definition: dllExport.h:23

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)