VR-Forces Development_Version 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 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
14 
16 
23 
24 class DtMoveToTask;
26 class DtMoveAlongTask;
28 class DtFollowEntityTask;
33 class DtRailRouteTask;
34 
35 
45 {
46 private:
47 
54 
55 public:
59  DtSimManager* simManager, DtComponentDescriptor* desc = NULL,
60  DtReaderWriterRegistry* parentRegistry = NULL);
61 
63 
64  virtual bool init();
65 
66  virtual bool createPSR();
67 
70  virtual const char* type() const;
71 
74  virtual void registerTaskMsgCallbacks();
75 
77  virtual bool postAddComponentsInit();
78 
81  static void movementTaskCallback(DtSimMessage* msg, void* usr, DtSimTaskStatePtr taskStatePtr);
82 
84  virtual void processMovementTask(DtSimMessage * msg, DtSimTaskStatePtr taskStatePtr);
85 
88  static void taskCompleteReportCallback(DtSimMessage* msg, void* usr);
89 
93  virtual void processTaskCompleteReport(DtSimMessage* msg);
94 
95  virtual void suspendTask(int taskId);
96 
97  virtual DtSimTaskStatePtr currentTaskState(int taskId) const;
98 
99 protected:
100 
102  virtual void processMovementTask(DtFollowEntityTask* taskMsg, int taskId);
103 
105  virtual void processMovementTask(DtMoveAlongTask* taskMsg, int taskId);
106 
112  virtual void processMovementTask(DtRailRouteTask* taskMsg,int taskId);
113 
116  virtual void processMovementTask(DtRailMoveAlongTask* taskMsg, int taskId);
117 
119  virtual void processMovementTask(DtTaskMessage* taskMsg);
120 
122  virtual void processMovementTask(DtMoveToTask* taskMsg, int taskId);
123 
125  virtual void processMovementTask(DtMoveToLocationTask* taskMsg, int taskId);
126 
127  virtual void processMovementTask(DtTurnToHeadingTask* taskMsg, int taskId);
128 
129  virtual void processMovementTask(DtScriptedTaskTask* taskMsg, int taskId);
130 
132  virtual void processMovementTask(DtPatrolRouteTask* taskMsg, int taskId);
133 
135  virtual void processMovementTask(DtPatrolTwoPointsTask* taskMsg, int taskId);
136 
137 public:
138 
142  static DtSimComponent * creator(const DtString& name, DtVrfObject* owner,
143  DtSimManager* simManager, DtComponentDescriptor* desc = 0,
144  DtReaderWriterRegistry* parentRegistry = 0);
145 
146 protected:
148 };
149 

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)