VR-Forces 4.1 Class Documentation
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 
15 
16 class DtFormationState;
18 class DtAggregatePatrolAlongDescriptor;
19 class DtVrfObjectManager;
20 
37 {
38 public:
39 
41  {
42  DtMovingAlongRoute = 0,
43  DtReversingDirection = 1
44  };
45 
49  DtVrfObject* owner,
50  DtSimManager* simManager,
51  DtComponentDescriptor* desc = 0,
52  DtReaderWriterRegistry* parentRegistry = 0);
53 
56 
59  virtual DtString type() const;
60 
63  virtual bool init();
64 
66  virtual void tick();
67 
69  virtual void registerTaskMsgCallbacks();
70 
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 
140 
143 
144 protected:
145 
147  const DtAggregatePatrolAlongDescriptor* myAggregatePatrolAlongDescriptor;
148 
151 
155 
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)