VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
influenceInterEncoderHLA.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/interactionEncoder.h>
16 
18 
21 #define DtDECLARE_INFLUENCE_PARAM_ENCODER(paramName) \
22  DtDECLARE_PARAM_ENCODER(DtInfluenceInteraction, paramName)
23 
24 #define DtDEFINE_SIMPLE_INFLUENCE_PARAM_ENCODER( \
25  paramName, netType, inspector) \
26  DtDEFINE_SIMPLE_PARAM_ENCODER( \
27  DtInfluenceInterEncoder, DtInfluenceInteraction, \
28  paramName, netType, inspector)
29 
30 #define DtDEFINE_SIMPLE_INFLUENCE_STRING_PARAM_ENCODER( \
31  paramName, inspector) \
32  void DtInfluenceInterEncoder::encode##paramName(const DtInfluenceInteraction& inter, \
33  RTI::ParameterHandleValuePairSet* params, \
34  RTI::ParameterHandle paramHandle) \
35 { \
36  DtString netVal = inter.inspector(); \
37  params->add(paramHandle, (char*) netVal.c_str(), netVal.length()+1); \
38 }
39 
44 {
45 public:
47  DtInfluenceInterEncoder(DtExerciseConn* exConn,
48  DtInterClassDesc* classDesc);
49 
51  virtual ~DtInfluenceInterEncoder();
52 
55 
57  DtInfluenceInterEncoder& operator=(const DtInfluenceInterEncoder& orig);
58 
59 protected:
60 
62  DtDECLARE_INFLUENCE_PARAM_ENCODER(InfluenceName);
63 
65  DtDECLARE_INFLUENCE_PARAM_ENCODER(InfluenceType);
66 
69 
72 
75 
78 
81 
83  DtDECLARE_INFLUENCE_PARAM_ENCODER(StopInfluence);
84 
87 
89  DtDECLARE_INFLUENCE_PARAM_ENCODER(ProbabilityKilled);
90 
92  DtDECLARE_INFLUENCE_PARAM_ENCODER(ProbabilityCaptured);
93 
95  DtDECLARE_INFLUENCE_PARAM_ENCODER(ProbabilityWounded);
96 
99 
101  DtDECLARE_INFLUENCE_PARAM_ENCODER(GuidanceSystem);
102 
105 
107  DtDECLARE_INFLUENCE_PARAM_ENCODER(IsPointAttack);
108 
109 };
110 
111 #endif // DtHLA
#define DtDECLARE_INFLUENCE_PARAM_ENCODER(paramName)
This can be used to declare parameter processor functions which are static members of a class...
Definition: influenceInterEncoderHLA.h:21
Definition: targetConfigurationDialog.h:35
Instances of DtInfluenceInterEncoder are used to encode data from DtInfluenceInter objects into netwo...
Definition: influenceInterEncoderHLA.h:43
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 Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)