VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 const char* type() const;
60 
63  virtual bool init();
64 
66  virtual void tick();
67 
69  virtual void registerTaskMsgCallbacks();
70 
71  static void patrolAlongCallback(DtSimMessage* msg, void* usr, DtSimTaskStatePtr taskStatePtr);
72 
76 
81  static void taskCompleteReportCallback(DtSimMessage * msg, void * usr);
82 
86  static DtSimComponent * creator(const DtString& name,
87  DtVrfObject* owner,
88  DtSimManager* simManager,
89  DtComponentDescriptor* desc = 0,
90  DtReaderWriterRegistry* parentRegistry = 0);
91 
92 protected:
93  virtual void processPatrolAlong(const DtTaskMessage& msg, DtSimTaskStatePtr taskStatePtr);
94 
99  virtual void onTaskComplete(DtSimMessage * msg);
100 
106  virtual bool createPSR();
107 
115  virtual DtIteratorDirection initialTraversalDirection(
116  const DtUUID& route, const DtVector& initialWorldPosition) const;
117 
126  virtual void sendMoveAlongToSelf(const DtUUID& route,
127  enum DtIteratorDirection traversalDirection, bool startAtClosestPoint);
128 
129 private:
130 
133 
136 
137 protected:
138 
140  const DtAggregatePatrolAlongDescriptor* myAggregatePatrolAlongDescriptor;
141 
144 
148 
150 };
151 

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)