VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfmodel
disaggregatedPatrolAlongController.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2004 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
12
#pragma once
13
14
#include "
vrfobjcore/singleTaskControllerComponent.h
"
15
16
class
DtFormationState
;
17
class
DtAggregatePatrolAlongPSR
;
18
class
DtAggregatePatrolAlongDescriptor;
19
class
DtVrfObjectManager
;
20
35
#include "
vrfmodel/vrfmodelDefines.h
"
36
class
DT_DLL_vrfmodel
DtDisaggregatedPatrolAlongController
:
public
DtSingleTaskControllerComponent
37
{
38
public
:
39
40
enum
DtPatrolAlongState
41
{
42
DtMovingAlongRoute = 0,
43
DtReversingDirection = 1
44
};
45
48
DtDisaggregatedPatrolAlongController
(
const
DtString
& name,
49
DtVrfObject
* owner,
50
DtSimManager
* simManager,
51
DtComponentDescriptor
* desc = 0,
52
DtReaderWriterRegistry
* parentRegistry = 0);
53
55
virtual
~
DtDisaggregatedPatrolAlongController
();
56
59
virtual
DtString
type
()
const
;
60
63
virtual
bool
init
();
64
66
virtual
void
tick
();
67
69
virtual
void
registerTaskMsgCallbacks
();
70
73
DtSimTaskStatePtr
currentTaskState
()
const
;
74
78
static
void
patrolAlongTaskCallback(
DtSimMessage
* msg,
void
* usr,
DtSimTaskStatePtr
taskStatePtr);
79
84
static
void
taskCompleteReportCallback(
DtSimMessage
* msg,
void
* usr);
85
89
static
DtSimComponent
* creator(
const
DtString
& name,
90
DtVrfObject
* owner,
91
DtSimManager
* simManager,
92
DtComponentDescriptor
* desc = 0,
93
DtReaderWriterRegistry
* parentRegistry = 0);
94
95
protected
:
96
100
virtual
void
processPatrolAlongTask(
DtSimMessage
* msg,
DtSimTaskStatePtr
taskStatePtr);
101
106
virtual
void
onTaskComplete(
DtSimMessage
* msg);
107
113
virtual
bool
createPSR();
114
122
virtual
DtIteratorDirection
initialTraversalDirection(
123
const
DtString
& routeName,
const
DtVector
& initialWorldPosition)
const
;
124
133
virtual
void
sendMoveAlongToSelf(
const
DtString
& routeName,
134
enum
DtIteratorDirection
traversalDirection
,
bool
startAtClosestPoint);
135
136
private
:
137
139
DtDisaggregatedPatrolAlongController
(
const
DtDisaggregatedPatrolAlongController
& orig);
140
142
DtDisaggregatedPatrolAlongController
&
operator=
(
const
DtDisaggregatedPatrolAlongController
& orig);
143
144
protected
:
145
147
const
DtAggregatePatrolAlongDescriptor*
myAggregatePatrolAlongDescriptor
;
148
150
DtFormationState
*
myFormationState
;
151
154
DtAggregatePatrolAlongPSR
*
myProcessState
;
155
156
bool
myFirstTick
;
157
};
158
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
)