VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
influenceInterEncoderHLA.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2013 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtHLA
13 
14 #include <vl/interactionEncoder.h>
16 
17 
19 
22 #define DtDECLARE_INFLUENCE_PARAM_ENCODER(paramName) \
23  DtDECLARE_PARAM_ENCODER(DtInfluenceInteraction, paramName)
24 
25 #define DtDEFINE_SIMPLE_INFLUENCE_PARAM_ENCODER( \
26  paramName, netType, inspector) \
27  DtDEFINE_SIMPLE_PARAM_ENCODER( \
28  DtInfluenceInterEncoder, DtInfluenceInteraction, \
29  paramName, netType, inspector)
30 
31 #define DtDEFINE_SIMPLE_INFLUENCE_STRING_PARAM_ENCODER( \
32  paramName, inspector) \
33  void DtInfluenceInterEncoder::encode##paramName(const DtInfluenceInteraction& inter, \
34  RTI::ParameterHandleValuePairSet* params, \
35  RTI::ParameterHandle paramHandle) \
36 { \
37  DtString netVal = inter.inspector(); \
38  params->add(paramHandle, (char*) netVal.c_str(), netVal.length()+1); \
39 }
40 
45 {
46 public:
48  DtInfluenceInterEncoder(DtExerciseConn* exConn,
49  DtInterClassDesc* classDesc);
50 
52  virtual ~DtInfluenceInterEncoder();
53 
56 
58  DtInfluenceInterEncoder& operator=(const DtInfluenceInterEncoder& orig);
59 
60 protected:
61 
63  DtDECLARE_INFLUENCE_PARAM_ENCODER(InfluenceName);
64 
66  DtDECLARE_INFLUENCE_PARAM_ENCODER(InfluenceType);
67 
70 
73 
76 
79 
82 
84  DtDECLARE_INFLUENCE_PARAM_ENCODER(StopInfluence);
85 
88 
90  DtDECLARE_INFLUENCE_PARAM_ENCODER(ProbabilityKilled);
91 
93  DtDECLARE_INFLUENCE_PARAM_ENCODER(ProbabilityCaptured);
94 
96  DtDECLARE_INFLUENCE_PARAM_ENCODER(ProbabilityWounded);
97 
98 };
99 
100 
101 
102 #endif

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)