VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfExtObjects
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>
14
#include <
vrfExtObjects/vrfExtObjectsDefines.h
>
15
16
class
DtInfluenceInteraction
;
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
45
class
DT_DLL_vrfExtObjects
DtInfluenceInterDecoder
:
public
DtInteractionDecoder
46
{
47
public
:
49
DtInfluenceInterDecoder
(DtExerciseConn* exConn,
50
DtInterClassDesc* classDesc);
51
53
virtual
~
DtInfluenceInterDecoder
();
54
56
DtInfluenceInterDecoder
(
const
DtInfluenceInterDecoder
& orig);
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
70
DtDECLARE_INFLUENCE_PARAM_DECODER
(Influencer);
71
73
DtDECLARE_INFLUENCE_PARAM_DECODER
(Target);
74
76
DtDECLARE_INFLUENCE_PARAM_DECODER
(Strength);
77
79
DtDECLARE_INFLUENCE_PARAM_DECODER
(Duration);
80
82
DtDECLARE_INFLUENCE_PARAM_DECODER
(Location);
83
85
DtDECLARE_INFLUENCE_PARAM_DECODER
(StopInfluence);
86
88
DtDECLARE_INFLUENCE_PARAM_DECODER
(HitFactor);
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 Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)