VR-Forces 4.6.1 Class Documentation
 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 
100 };
101 
102 #endif // DtHLA

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)