VR-Link API Documentation for HLA 1516
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
tDetInter.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
6
7
#ifndef tDetInter_H_
8
#define tDetInter_H_
9
10
#if DtTENA
11
12
#include "
tInteraction.h
"
13
#include <
vlpi/entityIdentifier.h
>
14
#include "
globalObjDes.h
"
15
19
20
class
DT_DLL_VL
DtFireInteraction
;
21
class
DT_DLL_VL
DtDetonationInteraction
;
22
24
typedef
void (*
DtDetonationInteractionCb
)(
DtDetonationInteraction
* inter,
void
* usr);
25
26
30
class
DT_DLL_VL
DtDetonationInteraction
:
public
DtInteraction
31
{
32
public
:
34
DtDetonationInteraction
();
35
37
virtual
~
DtDetonationInteraction
();
38
40
DtDetonationInteraction
(
const
DtDetonationInteraction
& orig);
41
43
DtDetonationInteraction
&
operator=
(
44
const
DtDetonationInteraction
& orig);
45
47
DtDetonationInteraction
(
const
DtFireInteraction
& fire);
48
50
virtual
void
setAttackerId(
const
DtGlobalObjectDesignator
&
id
);
51
53
virtual
const
DtGlobalObjectDesignator
& attackerId()
const
;
54
56
virtual
void
setTargetId(
const
DtGlobalObjectDesignator
&
id
);
57
59
virtual
const
DtGlobalObjectDesignator
& targetId()
const
;
60
63
virtual
void
setWorldLocation(
const
DtVector
& loc);
64
66
virtual
const
DtVector
& worldLocation()
const
;
67
70
virtual
void
setVelocity(
const
DtVector
& vel);
71
73
virtual
const
DtVector
& velocity()
const
;
74
76
virtual
void
setMunitionId(
const
DtGlobalObjectDesignator
&
id
);
77
79
virtual
const
DtGlobalObjectDesignator
& munitionId()
const
;
80
82
virtual
void
setMunitionType(
const
DtEntityType
& munType);
83
85
virtual
const
DtEntityType
& munitionType()
const
;
86
88
virtual
void
setResult(
DtDetonationResult
res);
89
91
virtual
DtDetonationResult
result()
const
;
92
94
virtual
void
setWarheadType(
DtWarheadType
whType);
95
97
virtual
DtWarheadType
warheadType()
const
;
98
99
virtual
void
setWeaponFireMessageId(
const
DtGlobalObjectDesignator
& mesId);
100
101
virtual
const
DtGlobalObjectDesignator
& weaponFireMessageId()
const
;
102
104
virtual
const
char
*
name
()
const
;
105
107
virtual
void
printData
()
const
;
108
110
virtual
void
printDataToStream
(std::ostream& stream)
const
;
111
112
public
:
113
116
static
DtInteraction
* create();
117
120
static
void
addCallback
(
DtExerciseConn
* conn,
121
DtDetonationInteractionCb
cb,
void
* usr);
122
124
static
void
removeCallback
(
DtExerciseConn
* conn,
125
DtDetonationInteractionCb
cb,
void
* usr);
126
127
128
protected
:
129
DtGlobalObjectDesignator
myAttackerId;
130
DtGlobalObjectDesignator
myTargetId;
131
DtVector
myWorldLocation;
132
DtVector
myVelocity;
133
DtGlobalObjectDesignator
myMunitionId;
134
DtEntityType
myMunitionType;
135
DtDetonationResult
myResult;
136
DtWarheadType
myWarheadType;
137
DtGlobalObjectDesignator
myWeaponFireMessageId;
138
};
139
140
#endif
141
#endif
142
143
Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)