VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfutil
rwEngagementInfo.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
#pragma once
10
11
#include <
readerWriter/readerWriter.h
>
12
#include <
readerWriter/rwString.h
>
13
#include "
readerWriter/rwVector.h
"
14
#include <
readerWriter/rwBoolean.h
>
15
#include <
readerWriter/rwInt.h
>
16
#include <
readerWriter/rwReal.h
>
17
#include "
vrfutil/vrfutilDefines.h
"
18
#include <
vrfutil/rwUUID.h
>
19
20
class
DtReaderWriterRegistry
;
21
23
class
DT_DLL_vrfutil
DtRwEngagementInfo
:
public
DtReaderWriter
24
{
25
public
:
26
28
29
DtRwEngagementInfo
();
30
31
DtRwEngagementInfo
(
const
DtString
& name,
32
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
33
DtRwEngagementInfo
(
const
DtSymbolString
& name,
34
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
35
36
DtRwEngagementInfo
(
const
DtRwEngagementInfo
& orig,
37
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
39
41
virtual
~
DtRwEngagementInfo
();
42
44
DtRwEngagementInfo
&
operator=
(
const
DtRwEngagementInfo
& orig);
45
48
49
virtual
void
setTargetLocation(
const
DtVector
& vector);
50
virtual
DtVector
targetLocation()
const
;
52
55
56
57
virtual
const
DtUUID
& target()
const
;
58
60
virtual
void
setTarget(
const
DtUUID
&);
62
64
65
virtual
double
originalDateAndTimeOfContact()
const
;
66
virtual
void
setOriginalDateAndTimeOfContact(
double
d);
68
70
71
virtual
bool
engagementComplete()
const
;
72
virtual
void
setEngagementComplete(
bool
complete
);
74
76
77
virtual
int
numberKilled()
const
;
78
virtual
void
setNumberKilled(
int
num);
80
82
83
virtual
int
numberCaptured()
const
;
84
virtual
void
setNumberCaptured(
int
num);
86
88
virtual
DtRwEngagementInfo
* clone()
const
;
89
90
bool
operator==
(
const
DtRwEngagementInfo
&)
const
;
91
92
93
protected
:
94
95
DtRwUUID
myTarget
;
96
DtRwVector
myTargetLocation
;
97
DtRwBoolean
myEngagementComplete
;
98
DtRwInt
myNumberKilled
;
99
DtRwInt
myNumberCaptured
;
100
DtRwReal
myOriginalDateAndTimeOfContact
;
101
};
102
103
namespace
DtBufferSerialize
104
{
106
DT_DLL_vrfutil
int
getSize
(
const
DtRwEngagementInfo
& info);
107
113
DT_DLL_vrfutil
char
*
encode
(
const
DtRwEngagementInfo
& info,
char
*buffer);
114
120
DT_DLL_vrfutil
const
char
*
decode
(
DtRwEngagementInfo
& info,
const
char
*buffer);
121
}
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)