VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfmodel
surfEntFolwCtl.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2007 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
11
#pragma once
12
13
#include "
vrfmodel/surfEntMvToCtl.h
"
14
15
class
DtSimManager
;
16
class
DtSimMessage
;
17
18
30
31
#include "
vrfmodel/vrfmodelDefines.h
"
32
class
DT_DLL_vrfmodel
DtSurfaceEntityFollowEntityController
:
33
public
DtSurfaceEntityMoveToController
34
{
35
36
public
:
37
40
DtSurfaceEntityFollowEntityController
(
const
DtString
& name,
41
DtVrfObject
* owner,
42
DtSimManager
* simManager,
43
DtComponentDescriptor
* desc = 0,
44
DtReaderWriterRegistry
* parentRegistry = 0);
45
49
virtual
~
DtSurfaceEntityFollowEntityController
();
50
53
virtual
DtString
type
()
const
;
54
63
static
void
followEntityCallback(
DtSimMessage
* msg,
void
* usrData);
64
71
virtual
void
processFollowEntityTask(
DtSimMessage
* msg);
72
79
virtual
const
DtString
& entityToFollow();
81
virtual
void
setEntityToFollow(
const
DtString
& entity);
82
87
virtual
const
DtVector
& offsetVector()
const
;
88
virtual
void
setOffsetVector(
const
DtVector
& offsets);
90
94
virtual
void
registerTaskMsgCallbacks
();
95
102
virtual
bool
setupControlPoint
();
103
120
virtual
void
tick
();
121
130
virtual
void
matchFollowedEntity();
131
134
virtual
double
findDesiredSpeed
();
135
138
virtual
void
setupGoalVector
(
const
DtVector
& goalPosition);
139
142
virtual
bool
passedGoal
();
143
147
static
DtSimComponent
*
creator
(
const
DtString
& name,
148
DtVrfObject
* owner,
149
DtSimManager
* simManager,
150
DtComponentDescriptor
* desc = 0,
151
DtReaderWriterRegistry
* parentRegistry = 0);
152
161
virtual
void
doMoving
(
double
desiredSpeed);
162
163
protected
:
165
DtSurfaceEntityFollowEntityController
();
166
168
DtSurfaceEntityFollowEntityController
(
169
const
DtSurfaceEntityFollowEntityController
& orig);
170
172
const
DtSurfaceEntityFollowEntityController
&
operator=
(
173
const
DtSurfaceEntityFollowEntityController
& orig);
174
175
protected
:
176
178
DtVrfObject
*
myEntityPointer
;
179
180
};
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
)