VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfmodel
gndInterceptAndDestroyController.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2007 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
#pragma once
11
12
#include "
vrfmodel/gndMvToDestinationCntlr.h
"
13
14
#include <vlutil/vlString.h>
15
#include <matrix/vlVector.h>
16
17
class
DtSimManager
;
18
class
DtSimMessage
;
19
class
DtStringOutputPort
;
20
class
DtGroundInterceptAndDestroyControllerDescriptor;
21
22
31
#include "
vrfmodel/vrfmodelDefines.h
"
32
class
DT_DLL_vrfmodel
DtGroundInterceptAndDestroyController
:
public
DtGroundMoveToDestinationControllerComponent
33
{
34
35
public
:
36
39
DtGroundInterceptAndDestroyController
(
const
DtString
& name,
40
DtVrfObject
* owner,
41
DtSimManager
* simManager,
42
DtComponentDescriptor
* desc = 0,
43
DtReaderWriterRegistry
* parentRegistry = 0);
44
46
virtual
~
DtGroundInterceptAndDestroyController
();
47
50
virtual
DtString
type
()
const
;
51
55
static
void
interceptAndDestroyCallback(
DtSimMessage
* msg,
void
* usrData);
56
57
virtual
void
processInterceptAndDestroyTask(
DtSimMessage
* msg);
58
63
virtual
const
DtString
& entityToInterceptAndDestroy();
64
virtual
void
setEntityToInterceptAndDestroy(
const
DtString
& entity);
65
69
static
DtSimComponent
*
creator
(
const
DtString
& name,
70
DtVrfObject
* owner,
71
DtSimManager
* simManager,
72
DtComponentDescriptor
* desc = 0,
73
DtReaderWriterRegistry
* parentRegistry = 0);
74
76
virtual
void
registerTaskMsgCallbacks
();
77
81
virtual
bool
setupDestination
();
82
83
virtual
void
moveToDestination
();
84
87
virtual
bool
nearDestination
();
88
91
virtual
bool
atDestination
();
92
95
virtual
bool
passedDestination
();
96
99
virtual
double
findDesiredSpeed
();
100
104
virtual
double
findDesiredHeading
();
105
116
virtual
void
setupDestinationVector
()
const
;
117
122
virtual
DtAutoTransmissionGear
determineGearSetting
();
123
127
virtual
void
stop
();
128
129
protected
:
132
DtGroundInterceptAndDestroyController
();
133
135
DtGroundInterceptAndDestroyController
(
const
DtGroundInterceptAndDestroyController
&
136
orig);
137
139
const
DtGroundInterceptAndDestroyController
&
operator=
(
const
140
DtGroundInterceptAndDestroyController
& orig);
141
142
bool
createPorts
();
143
144
protected
:
145
147
DtVrfObject
*
myTargetp
;
148
DtStringOutputPort
*
myInterceptAndDestroyOutputPort
;
149
double
myCurrentSeperation
;
152
double
myTargetBR
;
153
154
bool
myFirstTick
;
155
};
156
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
)