VR-Forces 4.6.1 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
aggregatedPatrolController.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2004 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
#pragma once
10
11
#include "
vrfobjcore/singleTaskControllerComponent.h
"
12
#include "
vrfmodel/vrfmodelDefines.h
"
13
14
class
DtFormationState
;
15
class
DtAggregatedPatrolPSR
;
16
class
DtVrfObjectManager
;
17
28
class
DT_DLL_vrfmodel
DtAggregatedPatrolController
:
public
DtSingleTaskControllerComponent
29
{
30
public
:
31
32
enum
DtPatrolAlongState
33
{
34
DtMovingAlongRoute = 0,
35
DtReversingDirection = 1
36
};
37
40
DtAggregatedPatrolController
(
const
DtString
& name,
41
DtVrfObject
* owner,
42
DtSimManager
* simManager,
43
DtComponentDescriptor
* desc = 0,
44
DtReaderWriterRegistry
* parentRegistry = 0);
45
47
virtual
~
DtAggregatedPatrolController
();
48
51
virtual
const
char
*
type
()
const
;
52
55
virtual
bool
init
();
56
58
virtual
void
registerTaskMsgCallbacks
();
59
60
static
void
patrolCallback(
DtSimMessage
* msg,
void
* usr,
DtSimTaskStatePtr
taskStatePtr);
61
64
DtSimTaskStatePtr
currentTaskState
()
const
;
65
70
static
void
taskCompleteReportCallback(
DtSimMessage
* msg,
void
* usr);
71
75
static
DtSimComponent
* creator(
const
DtString
& name,
76
DtVrfObject
* owner,
77
DtSimManager
* simManager,
78
DtComponentDescriptor
* desc = 0,
79
DtReaderWriterRegistry
* parentRegistry = 0);
80
81
protected
:
82
virtual
void
processPatrol(
const
DtTaskMessage
& msg,
DtSimTaskStatePtr
taskStatePtr);
83
88
virtual
void
processPatrolTwoPointsTask(
DtSimTask
*
task
,
DtSimTaskStatePtr
taskStatePtr);
89
97
virtual
void
onTaskComplete(
DtSimMessage
* msg);
98
106
virtual
bool
moveTo(
const
DtUUID
& controlPoint);
107
111
virtual
void
processPatrolAlongTask(
DtSimTask
*
task
,
DtSimTaskStatePtr
taskStatePtr);
112
118
virtual
bool
createPSR();
119
127
virtual
DtIteratorDirection
initialTraversalDirection(
128
const
DtUUID
& route,
const
DtVector
& initialWorldPosition)
const
;
129
138
virtual
void
sendMoveAlongToSelf(
const
DtUUID
& route,
139
enum
DtIteratorDirection
traversalDirection,
bool
startAtClosestPoint);
140
141
private
:
142
144
DtAggregatedPatrolController
(
const
DtAggregatedPatrolController
& orig);
145
147
DtAggregatedPatrolController
&
operator=
(
const
DtAggregatedPatrolController
& orig);
148
protected
:
149
152
DtAggregatedPatrolPSR
*
myProcessState
;
153
};
154
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)