VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfmodel
surfEntMvToLocCtl.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2007 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
11
12
#pragma once
13
14
#include "
vrfmodel/surfEntPltCtl.h
"
15
#include "
vrfmodel/vrfmodelDefines.h
"
16
17
#include "
vrfutil/scriptGeometry.h
"
18
28
class
DT_DLL_vrfmodel
DtSurfaceEntityMoveToLocationController
:
29
public
DtSurfaceEntityPilotController
30
{
31
private
:
33
DtSurfaceEntityMoveToLocationController
();
34
36
DtSurfaceEntityMoveToLocationController
(
37
const
DtSurfaceEntityMoveToLocationController
& orig);
38
40
const
DtSurfaceEntityMoveToLocationController
&
operator=
(
41
const
DtSurfaceEntityMoveToLocationController
& orig);
42
43
public
:
46
DtSurfaceEntityMoveToLocationController
(
const
DtString
& name,
47
DtVrfObject
* owner,
48
DtSimManager
* simManager,
49
DtComponentDescriptor
* desc = 0,
50
DtReaderWriterRegistry
* parentRegistry = 0);
51
53
virtual
~
DtSurfaceEntityMoveToLocationController
();
54
57
virtual
DtString
type
()
const
;
58
67
static
void
moveToLocationCallback(
DtSimMessage
* msg,
void
* usr);
68
73
virtual
void
processMoveToLocationTask(
DtSimMessage
* msg);
74
77
virtual
void
initializeLocals(
const
DtVector
& globalTarget);
78
82
virtual
void
registerTaskMsgCallbacks
();
83
87
static
DtSimComponent
*
creator
(
const
DtString
& name,
88
DtVrfObject
* owner,
89
DtSimManager
* simManager,
90
DtComponentDescriptor
* desc = 0,
91
DtReaderWriterRegistry
* parentRegistry = 0);
92
93
virtual
void
tick
();
94
95
protected
:
109
virtual
bool
setupControlPoint();
110
114
virtual
bool
passedGoal();
115
117
virtual
bool
atGoal();
118
125
virtual
void
controlMovement();
126
127
protected
:
129
DtLocation3D
myEntityPoint
;
130
DtBoolean
myPassedGoal
;
131
DtBoolean
myAtGoal
;
132
DtVector2D
myCurrentGoalToEntity2DVector
;
133
136
DtLocation3D
myAimingPoint
;
137
};
138
Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)