VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
arealObjectSR.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*******************************************************************************/
5
6
#ifndef arealObjectSR_H
7
#define arealObjectSR_H
8
13
14
#include "
envObjectSR.h
"
15
#include "
objectType.h
"
16
17
#if DtHLA
18
class
DT_DLL_VL
DtHlaObjectManager
;
19
#else
20
class
DT_DLL_VL
DtDisObjectManager;
21
#endif
22
23
33
class
DT_DLL_VL
DtArealObjectRepository
:
public
DtEnvironmentObjectRepository
34
{
35
public
:
36
37
//default constructor
38
DtArealObjectRepository
();
39
40
//destructor
41
virtual
~
DtArealObjectRepository
();
42
43
//copy constructor
44
DtArealObjectRepository
(
const
DtArealObjectRepository
& orig);
45
46
//assignment operator
47
DtArealObjectRepository
&
operator=
(
const
DtArealObjectRepository
& orig);
48
50
virtual
DtStateRepository
*
clone
(
bool
copy)
const
;
51
52
static
DtArealObjectRepository
*
create
();
53
57
virtual
bool
setNumberOfPoints(
int
newNumberOfPoints);
58
virtual
int
numberOfPoints()
const
;
59
62
virtual
bool
setPointLocation(
int
index,
const
DtVector
& point);
63
virtual
bool
getPointLocation(
int
index,
DtVector
& point)
const
;
64
66
virtual
void
setPercentComplete(
const
DtU32
percent);
67
virtual
DtU32
percentComplete()
const
;
68
70
virtual
void
setDamagedAppearance(
const
DtDamageState
damage);
71
virtual
DtDamageState
damagedAppearance()
const
;
72
74
virtual
void
setObjectPreDistributed(
bool
predistributed);
75
virtual
bool
objectPreDistributed()
const
;
76
78
virtual
void
setDeactivated(
bool
onOff);
79
virtual
bool
deactivated()
const
;
80
82
virtual
void
setSmoking(
bool
onOff);
83
virtual
bool
smoking()
const
;
84
86
virtual
void
setFlaming(
bool
onOff);
87
virtual
bool
flaming()
const
;
88
90
virtual
void
setBreachedStatus(
const
DtBreachedStatus
status);
91
virtual
DtBreachedStatus
breachedStatus()
const
;
92
94
virtual
void
setMineCount(
const
DtU32
numMines);
95
virtual
DtU32
mineCount()
const
;
96
98
virtual
void
printData
()
const
;
99
101
virtual
void
printDataToStream
(std::ostream& stream)
const
;
102
103
protected
:
104
105
int
myNumberOfPoints
;
106
DtVector
*
myPoints
;
107
108
DtU32
myPercentComplete
;
109
DtDamageState
myDamagedAppearance
;
110
bool
myObjectPreDistributed
;
111
bool
myDeactivated
;
112
bool
mySmoking
;
113
bool
myFlaming
;
114
115
//For MinefieldObject
116
DtBreachedStatus
myBreachedStatus
;
117
DtU32
myMineCount
;
118
119
};
120
121
#endif //arealObjectSR_H
122
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
)