VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vlpi
burstDescriptor.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
6
#ifndef burstDescriptor_h_
7
#define burstDescriptor_h_
8
11
12
13
#include <
vlutil/vlMachineTypes.h
>
14
#include "
NetStructs.h
"
15
#include "
disEnums.h
"
16
#include "
entityType.h
"
17
18
class
DT_DLL_VLPROTIND
DtBurstDescriptor
19
{
20
public
:
21
DtBurstDescriptor
()
22
{
23
DtEntityType
type;
24
init(&type,
DtWarheadOther
,
DtFuzeOther
, 0, 0);
25
}
26
27
DtBurstDescriptor
(
const
DtNetBurstDescriptor
*netBurst)
28
{
29
DtEntityType
type(netBurst->
DtMunition
);
30
init(&type,
31
DtWarheadType
((
int
)netBurst->
DtWarhead
),
32
DtDetonatorFuze
((
int
)netBurst->
DtFuze
),
33
(
int
) netBurst->
DtQuantity
,
34
(
int
) netBurst->
DtRate
);
35
}
36
37
DtBurstDescriptor
(
const
DtEntityType
*type,
DtWarheadType
warhead,
38
DtDetonatorFuze
fuze,
DtU16
quantity,
DtU16
rate)
39
{
40
init(type, warhead, fuze, quantity, rate);
41
}
42
43
operator
DtNetBurstDescriptor
()
const
44
{
45
DtNetBurstDescriptor
b;
46
b.
DtMunition
=
DtMunition
;
47
b.
DtWarhead
= DtWarhead;
48
b.
DtFuze
= DtFuze;
49
b.
DtQuantity
= DtQuantity;
50
b.
DtRate
= DtRate;
51
return
(b);
52
}
53
54
void
init(
const
DtEntityType
* type,
DtWarheadType
warhead,
55
DtDetonatorFuze
fuze,
int
quantity,
int
rate)
56
{
57
DtMunition
= *type;
58
DtWarhead = warhead;
59
DtFuze = fuze;
60
DtQuantity = quantity;
61
DtRate = rate;
62
}
63
64
public
:
65
DtEntityType
DtMunition
;
66
DtWarheadType
DtWarhead
;
67
DtDetonatorFuze
DtFuze
;
68
int
DtQuantity
;
69
int
DtRate
;
70
};
71
72
#endif
73
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
)