VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfmodel
balGunJoy.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1999 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
11
12
#pragma once
13
14
#include "
vrfmodel/balGun.h
"
15
#include <vl/fireInter.h>
16
#include <vl/detonateInter.h>
17
#include "
vrfcore/timer.h
"
18
#include <vl/hostStructs.h>
19
20
class
DtSimManager
;
21
class
DtConstrainedAnalogInputPort
;
22
class
DtBooleanInputPort
;
23
class
DtBallisticGunDescriptor
;
24
class
DtVrfObject
;
25
30
#include "
vrfmodel/vrfmodelDefines.h
"
31
class
DT_DLL_vrfmodel
DtBallisticGunJoy
:
public
DtBallisticGun
32
{
33
public
:
34
37
DtBallisticGunJoy
(
const
DtString
& name,
DtVrfObject
* owner,
38
DtSimManager
*simManager,
DtComponentDescriptor
* desc,
39
DtReaderWriterRegistry
*
const
parentRegistry = 0);
40
41
public
:
43
virtual
~
DtBallisticGunJoy
();
44
47
virtual
DtString
type
()
const
;
48
50
virtual
bool
createPorts
();
51
54
virtual
void
setComponentDescriptor
(
DtComponentDescriptor
* descriptor);
55
58
virtual
void
tick
();
59
60
virtual
DtReal setTarget(
DtArticulatedPartStateRepository
*rotBody);
61
62
virtual
DtFireInteraction* manualFireInteraction(
63
DtArticulatedPartStateRepository
*rotBody);
64
65
virtual
DtDetonationInteraction
* manualDetonationInteraction(
66
DtArticulatedPartStateRepository
*rotBody, DtReal& detTime, DtReal dist);
67
68
virtual
DtVrfObject
*targetSelection(
69
DtArticulatedPartStateRepository
*rotBody, DtReal &dist);
70
71
virtual
DtReal distanceToTarget();
72
80
static
void
detonationCallback
(
DtTimer
* timer);
81
85
static
DtSimComponent
*
creator
(
const
DtString
& name,
86
DtVrfObject
* owner,
87
DtSimManager
* simManager,
88
DtComponentDescriptor
* desc = 0,
89
DtReaderWriterRegistry
* parentRegistry = 0);
90
91
private
:
94
DtBallisticGunJoy
();
95
97
DtBallisticGunJoy
(
const
DtBallisticGunJoy
& orig);
98
100
const
DtBallisticGunJoy
&
operator=
(
const
DtBallisticGunJoy
& orig);
101
102
protected
:
103
106
112
DtConstrainedAnalogInputPort
*
myElevationPort
;
113
119
DtBooleanInputPort
*
myActiveJoystickPort
;
120
122
123
};
124
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)