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
surfaceEntityMoveToLocationController.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/surfaceEntityPilotController.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
const
char
*
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
DtVector2D
myCurrentEntityToGoal2DVector
;
134
135
136
137
140
DtLocation3D
myAimingPoint
;
141
};
142
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
)