VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
entityDamageStatusPdu.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 DtDIS
13
14
#include <
vlutil/vlMachineTypes.h
>
15
#include <
vl/interaction.h
>
16
#include <
vl/stateMsgDIS.h
>
17
#include <
vl/eventId.h
>
18
19
class
DtExerciseConn
;
20
class
DtEntityDamageStatusPdu
;
21
class
DtDirectedEnergyDamageDescriptionRecord
;
22
struct
DtNetStandardVariableRecordSet
;
23
struct
DtNetEntityDamageStatusPdu
;
24
26
typedef
DtEntityDamageStatusPdu
DtEntityDamageInteraction
;
27
28
typedef
void (*
DtEntityDamageInteractionCb
)(
DtEntityDamageInteraction
* inter,
void
* usr );
29
32
class
DT_DLL_VL
DtEntityDamageStatusPdu
:
public
DtStateMsg
33
{
34
public
:
35
36
static
DtPdu
* create(
const
DtNetPacket
* initial,
37
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
,
DtPduFactory
* pduFactory = 0 );
38
40
DtEntityDamageStatusPdu
(
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
41
43
DtEntityDamageStatusPdu
(
const
DtNetEntityDamageStatusPdu
*initial,
44
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
,
DtPduFactory
* pduFactory = 0 );
45
47
virtual
~
DtEntityDamageStatusPdu
();
48
50
virtual
const
DtEntityIdentifier
& damagedEntityId()
const
;
52
virtual
void
setDamagedEntityId(
const
DtEntityIdentifier
& damagedEntityId );
53
55
virtual
void
addDamageDescriptionRecord(
const
DtDirectedEnergyDamageDescriptionRecord
& record );
56
58
virtual
void
addDamageDescriptionRecords(
const
std::vector<DtDirectedEnergyDamageDescriptionRecord>& records );
59
61
virtual
void
getDamageDescriptionRecords( std::vector<DtDirectedEnergyDamageDescriptionRecord>& records )
const
;
62
64
virtual
unsigned
int
numberOfRecords
()
const
;
65
66
static
void
addCallback(
DtExerciseConn
* conn,
DtEntityDamageInteractionCb
cb,
void
* usr );
67
static
void
removeCallback(
DtExerciseConn
* conn,
DtEntityDamageInteractionCb
cb,
void
* usr );
68
69
virtual
void
printData
()
const
;
70
virtual
void
printDataToStream
( std::ostream& stream )
const
;
71
virtual
void
printDataToString
(
DtString
& str )
const
;
72
73
protected
:
74
76
virtual
void
printRecordsToStream( std::ostream& stream )
const
;
77
79
DtPduKind
internalGetPduKind
()
const
{
return
DtEntityDamageStatusPduKind
; }
80
81
protected
:
82
84
static
const
int
theStaticSize
;
85
86
DtEntityIdentifier
myDamagedEntityId
;
87
88
};
89
90
#endif
Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)