VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
examples
f18
vehicleSim.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*******************************************************************************/
7
8
#pragma once
9
10
#include <
vl/exerciseConn.h
>
11
#include <
vl/reflectedEntityList.h
>
12
#include <
vl/entityPublisher.h
>
13
#include <
vl/emitterSystemPublisher.h
>
14
#include <
vl/topoView.h
>
15
#include <
vl/detonationInteraction.h
>
16
#include <
vl/fireInteraction.h
>
17
18
class
DtEmitterBeamRepository
;
19
22
class
DtVehicleSim
23
{
24
public
:
25
28
DtVehicleSim
(
double
refLat,
double
refLon,
29
DtExerciseConn
* conn,
DtReflectedEntityList
* rel,
30
const
DtEntityIdentifier
&
id
,
const
DtEntityType
& type,
31
const
char
* name,
const
char
* markings,
32
const
DtDeadReckonTypes
alg,
bool
haveArtParts );
33
35
virtual
~DtVehicleSim
();
36
38
virtual
void
init
(
DtConstVector
initPos,
double
initSpeed,
39
double
initHeading,
double
initTRadius,
40
double
initPitch,
bool
autoRoll,
double
initRoll );
41
43
virtual
void
simTick
(
DtTime
dt );
44
46
virtual
void
fireMunition
(
const
DtGlobalObjectDesignator
& tg );
47
virtual
void
fireMunition
();
48
virtual
void
detonateMunition
();
49
virtual
void
munitionTick
();
50
52
virtual
void
processDetonation
(
DtDetonationInteraction
* inter );
53
virtual
int
checkDetonation
(
DtDetonationInteraction
* inter );
54
virtual
void
reactToDamage
();
55
virtual
bool
isDestroyed
();
56
virtual
DtTime
timeDestroyed
();
57
59
virtual
void
toggleEmissions
();
60
virtual
void
enableEmissions
();
61
virtual
void
disableEmissions
();
62
virtual
void
emissionsTick
(
double
dt );
63
64
public
:
65
66
static
void
setLethalDetonationRange
(
double
range );
67
static
void
setMunitionFlightTime
(
DtTime
time );
68
69
protected
:
70
71
virtual
void
moveArtParts
(
DtTime
dt );
72
73
protected
:
74
75
static
void
theDetonationCb
(
DtDetonationInteraction
*,
void
* );
76
77
protected
:
78
DtExerciseConn
*
myExConn
;
79
DtEntityPublisher
*
myEntityPub
;
80
DtEmitterSystemPublisher
*
mySysPub
;
81
DtEntityStateRepository
*
myESR
;
82
DtTopoView
*
myTopoView
;
83
DtReflectedEntityList
*
myRel
;
84
DtEmitterBeamRepository
*
myBeam
;
85
86
double
mySpeed
;
87
double
myTurnRadius
;
88
double
myTurnRate
;
89
double
myScalarAccel
;
90
double
myBeamTime
;
91
92
DtTaitBryan
myEuler
;
93
DtVector
myPos
;
94
DtVector
myVel
;
95
DtVector
myAccel
;
96
DtVector
myRotRate
;
97
98
float
myTurretAz
;
99
float
myTurretAzRate
;
100
float
myGunElev
;
101
float
myGunElevRate
;
102
103
DtFireInteraction
*
myFire
;
104
DtTime
myDetonateTime
;
105
DtTime
myTimeDestroyed
;
106
bool
myIsDestroyed
;
107
108
bool
myHaveArtParts
;
109
bool
myEmissionsEnabled
;
110
111
protected
:
112
static
double
theLethalDetonationRange
;
113
static
DtTime
theMunitionFlightTime
;
114
};
115
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
)