VR-Forces 4.7 Class Documentation
 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 
97 };
98 
99 #endif // DtHLA

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)