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
vrfmodel
launcherActuator.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1999 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
#pragma once
11
12
#include "
vrfmodel/weaponActuator.h
"
13
#include <
vrfobjparam/missileLauncherActuatorDescriptor.h
>
14
#include <vl/hostStructs.h>
15
16
class
DtSimManager
;
17
18
class
DtObjectIdInputPort
;
19
class
DtVectorInputPort
;
20
36
#include "
vrfmodel/vrfmodelDefines.h
"
37
class
DT_DLL_vrfmodel
DtLauncherActuator
:
public
DtWeaponActuator
38
{
39
40
public
:
41
44
DtLauncherActuator
(
const
DtString
& name,
45
DtVrfObject
* owner,
46
DtSimManager
* simManager,
47
DtComponentDescriptor
* desc = 0,
48
DtReaderWriterRegistry
* parentRegistry = 0);
49
51
virtual
~
DtLauncherActuator
();
52
55
virtual
bool
init
();
56
59
virtual
const
char
*
type
()
const
;
60
69
virtual
void
fireTheWeapon
();
70
72
virtual
DtFireInteraction *
createFireInteraction
(
DtVrfObject
*missile);
73
77
static
DtSimComponent
*
creator
(
const
DtString
& name,
78
DtVrfObject
* owner,
79
DtSimManager
* simManager,
80
DtComponentDescriptor
* desc = 0,
81
DtReaderWriterRegistry
* parentRegistry = 0);
82
83
protected
:
84
87
virtual
bool
createPorts
();
88
91
virtual
bool
shouldHitTarget(
const
DtVector
& localStartPosition,
92
const
DtVector
& localTargetPosition,
const
DtVector
& localInitialVelocity,
93
const
DtVrfObject
*targetObject)
const
;
94
97
virtual
bool
useHitProbability(
const
DtVrfObject
*targetObject)
const
;
98
99
virtual
const
DtString
& probabilityString()
const
;
100
101
protected
:
102
104
DtLauncherActuator
();
105
107
DtLauncherActuator
(
const
DtLauncherActuator
& orig);
108
110
const
DtLauncherActuator
&
operator=
(
const
DtLauncherActuator
& orig);
111
112
113
protected
:
114
115
DtMissileLauncherActuatorDescriptor
*
myMissileLauncherDesc
;
116
119
125
DtObjectIdInputPort
*
myMissileIdPort
;
126
132
DtObjectIdInputPort
*
myTargetEntityIdPort
;
133
139
DtVectorInputPort
*
myTargetPointPort
;
140
142
145
static
bool
myDetonationCbackRegistered
;
146
147
DtVector
myCurrentTargetPoint
;
148
};
149
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
)