VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
groundMovementChooserController.h
Go to the documentation of this file.
1 
2 /*******************************************************************************
3 ** Copyright (c) 2009 MAK Technologies, Inc.
4 ** All rights reserved.
5 *******************************************************************************/
6 
9 
12 
13 #pragma once
14 
15 
17 
24 
25 class DtMoveToTask;
27 class DtMoveAlongTask;
29 class DtFollowEntityTask;
34 class DtRailRouteTask;
35 
36 
46 {
47 private:
48 
55 
56 public:
57 
61  DtSimManager* simManager, DtComponentDescriptor* desc = NULL,
62  DtReaderWriterRegistry* parentRegistry = NULL);
63 
65 
66  virtual bool init();
67 
68  virtual bool createPSR();
69 
72  virtual DtString type() const;
73 
76  virtual void registerTaskMsgCallbacks();
77 
79  virtual bool postAddComponentsInit();
80 
83  static void movementTaskCallback(DtSimMessage* msg, void* usr, DtSimTaskStatePtr taskStatePtr);
84 
86  virtual void processMovementTask(DtSimMessage * msg, DtSimTaskStatePtr taskStatePtr);
87 
90  static void taskCompleteReportCallback(DtSimMessage* msg, void* usr);
91 
95  virtual void processTaskCompleteReport(DtSimMessage* msg);
96 
97  virtual void suspendTask(int taskId);
98 
99  virtual DtSimTaskStatePtr currentTaskState(int taskId) const;
100 
101 protected:
102 
104  virtual void processMovementTask(DtFollowEntityTask* taskMsg, int taskId);
105 
107  virtual void processMovementTask(DtMoveAlongTask* taskMsg, int taskId);
108 
114  virtual void processMovementTask(DtRailRouteTask* taskMsg,int taskId);
115 
118  virtual void processMovementTask(DtRailMoveAlongTask* taskMsg, int taskId);
119 
121  virtual void processMovementTask(DtTaskMessage* taskMsg);
122 
124  virtual void processMovementTask(DtMoveToTask* taskMsg, int taskId);
125 
127  virtual void processMovementTask(DtMoveToLocationTask* taskMsg, int taskId);
128 
129  virtual void processMovementTask(DtTurnToHeadingTask* taskMsg, int taskId);
130 
131  virtual void processMovementTask(DtScriptedTaskTask* taskMsg, int taskId);
132 
134  virtual void processMovementTask(DtPatrolRouteTask* taskMsg, int taskId);
135 
137  virtual void processMovementTask(DtPatrolTwoPointsTask* taskMsg, int taskId);
138 
139 public:
140 
144  static DtSimComponent * creator(const DtString& name, DtVrfObject* owner,
145  DtSimManager* simManager, DtComponentDescriptor* desc = 0,
146  DtReaderWriterRegistry* parentRegistry = 0);
147 
148 protected:
150 };
151 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)