VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfmodel
humanPatrolController.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2004 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
12
13
#pragma once
14
15
#include "
vrfobjcore/singleTaskControllerComponent.h
"
16
#include "
vrfmodel/vrfmodelDefines.h
"
17
18
class
DtFormationState
;
19
class
DtHumanPatrolPSR
;
20
class
DtVrfObjectManager
;
21
32
class
DT_DLL_vrfmodel
DtHumanPatrolController
:
public
DtSingleTaskControllerComponent
33
{
34
public
:
35
36
enum
DtPatrolAlongState
37
{
38
DtMovingAlongRoute = 0,
39
DtReversingDirection = 1
40
};
41
44
DtHumanPatrolController
(
const
DtString
& name,
45
DtVrfObject
* owner,
46
DtSimManager
* simManager,
47
DtComponentDescriptor
* desc = 0,
48
DtReaderWriterRegistry
* parentRegistry = 0);
49
51
virtual
~
DtHumanPatrolController
();
52
55
virtual
DtString
type
()
const
;
56
59
virtual
bool
init
();
60
62
virtual
void
registerTaskMsgCallbacks
();
63
68
static
void
patrolTwoPointsTaskCallback(
DtSimMessage
* msg,
void
* usr);
69
73
static
void
patrolAlongTaskCallback(
DtSimMessage
* msg,
void
* usr);
74
79
static
void
taskCompleteReportCallback(
DtSimMessage
* msg,
void
* usr);
80
84
static
DtSimComponent
* creator(
const
DtString
& name,
85
DtVrfObject
* owner,
86
DtSimManager
* simManager,
87
DtComponentDescriptor
* desc = 0,
88
DtReaderWriterRegistry
* parentRegistry = 0);
89
90
protected
:
91
96
virtual
void
onPatrolTwoPointsTask(
DtSimMessage
* msg);
97
105
virtual
void
onTaskComplete(
DtSimMessage
* msg);
106
114
virtual
bool
moveTo(
const
DtString
& controlPointName);
115
119
virtual
void
processPatrolAlongTask(
DtSimMessage
* msg);
120
126
virtual
bool
createPSR();
127
135
virtual
DtIteratorDirection
initialTraversalDirection(
136
const
DtString
& routeName,
const
DtVector
& initialWorldPosition)
const
;
137
146
virtual
void
sendMoveAlongToSelf(
const
DtString
& routeName,
147
enum
DtIteratorDirection
traversalDirection
,
bool
startAtClosestPoint);
148
149
private
:
150
152
DtHumanPatrolController
(
const
DtHumanPatrolController
& orig);
153
155
DtHumanPatrolController
&
operator=
(
const
DtHumanPatrolController
& orig);
156
157
protected
:
158
161
DtHumanPatrolPSR
*
myProcessState
;
162
};
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
)