VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
influenceInterDecoderHLA.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2013 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
11 #if DtHLA
12 
13 #include <vl/interactionDecoder.h>
15 
17 
20 #define DtDECLARE_INFLUENCE_PARAM_DECODER(paramName) \
21  DtDECLARE_PARAM_DECODER(DtInfluenceInteraction, paramName)
22 
23 #define DtDEFINE_SIMPLE_INFLUENCE_PARAM_DECODER( \
24  paramName, netType, mutator) \
25  DtDEFINE_SIMPLE_PARAM_DECODER( \
26  DtInfluenceInterDecoder, DtInfluenceInteraction, \
27  paramName, netType, mutator)
28 
29 #define DtDEFINE_SIMPLE_INFLUENCE_STRING_PARAM_DECODER( \
30  paramName, mutator) \
31  void DtInfluenceInterDecoder::decode##paramName(DtInfluenceInteraction* inter, \
32  const RTI::ParameterHandleValuePairSet& params, \
33  int index) \
34 { \
35  RTI::ULong length = 0; \
36  char* buf = (char*) params.getValuePointer(index, length); \
37  DtString val(buf, length); \
38  inter->mutator(val); \
39 }
40 
41 
46 {
47 public:
49  DtInfluenceInterDecoder(DtExerciseConn* exConn,
50  DtInterClassDesc* classDesc);
51 
53  virtual ~DtInfluenceInterDecoder();
54 
57 
59  DtInfluenceInterDecoder& operator=(const DtInfluenceInterDecoder& orig);
60 
61 protected:
62 
64  DtDECLARE_INFLUENCE_PARAM_DECODER(InfluenceName);
65 
67  DtDECLARE_INFLUENCE_PARAM_DECODER(InfluenceType);
68 
71 
74 
77 
80 
83 
85  DtDECLARE_INFLUENCE_PARAM_DECODER(StopInfluence);
86 
89 
91  DtDECLARE_INFLUENCE_PARAM_DECODER(ProbabilityKilled);
92 
94  DtDECLARE_INFLUENCE_PARAM_DECODER(ProbabilityCaptured);
95 
97  DtDECLARE_INFLUENCE_PARAM_DECODER(ProbabilityWounded);
98 
99 };
100 
101 
102 
103 #endif

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)