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
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>
15
#include <
vrfExtObjects/vrfExtObjectsDefines.h
>
16
17
18
class
DtInfluenceInteraction
;
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
44
class
DT_DLL_vrfExtObjects
DtInfluenceInterEncoder
:
public
DtInteractionEncoder
45
{
46
public
:
48
DtInfluenceInterEncoder
(DtExerciseConn* exConn,
49
DtInterClassDesc* classDesc);
50
52
virtual
~
DtInfluenceInterEncoder
();
53
55
DtInfluenceInterEncoder
(
const
DtInfluenceInterEncoder
& orig);
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
69
DtDECLARE_INFLUENCE_PARAM_ENCODER
(Influencer);
70
72
DtDECLARE_INFLUENCE_PARAM_ENCODER
(Target);
73
75
DtDECLARE_INFLUENCE_PARAM_ENCODER
(Strength);
76
78
DtDECLARE_INFLUENCE_PARAM_ENCODER
(Duration);
79
81
DtDECLARE_INFLUENCE_PARAM_ENCODER
(Location);
82
84
DtDECLARE_INFLUENCE_PARAM_ENCODER
(StopInfluence);
85
87
DtDECLARE_INFLUENCE_PARAM_ENCODER
(HitFactor);
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 Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)