VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
disaggregatedMoveToController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
12 
13 #pragma once
14 
16 
17 class DtSimMessage;
18 class DtMoveToTask;
19 
35 {
36 public:
37 
41  DtVrfObject* owner,
42  DtSimManager* simManager,
43  DtComponentDescriptor* desc = 0,
44  DtReaderWriterRegistry* parentRegistry = 0);
45 
47 
48  virtual void tick();
49 
52  virtual const char* type() const;
53 
56  virtual void registerTaskMsgCallbacks();
57 
59  virtual void clearTask();
60 
64  static void moveToTaskCallback(DtSimMessage * msg, void * usr);
65 
67  static void taskCompleteReportCallback(DtSimMessage * msg, void * usr);
68 
71  static void waypointMovedCallback(const DtVrfObject* obj, void * usr);
72 
76  static DtSimComponent * creator(const DtString& name,
77  DtVrfObject* owner,
78  DtSimManager* simManager,
79  DtComponentDescriptor* desc = 0,
80  DtReaderWriterRegistry* parentRegistry = 0);
81 
82 protected:
83 
85  virtual void onWaypointMoved(const DtVrfObject* obj);
86 
90  virtual void onMoveToTask(DtSimMessage * msg);
91 
95  virtual void onTaskComplete(DtSimMessage * msg);
96 
98  virtual void startMoveToBehavior(const DtMoveToTask& moveToTask);
99 
100 private:
101 
104 
107 
109 };
110 
bool myFirstTick
Definition: disaggregatedMoveToController.h:108
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
virtual void registerTaskMsgCallbacks()
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:20
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
File: moveToTask.h.
Definition: moveToTask.h:43
Definition: readerWriterRegistry.h:39
virtual const char * type() const =0
Returns a string identifies the class type of component.
virtual void clearTask()
If component is currently tasked, calls clearPendingSubtasks(), sets the tasked flag to false...
Class DtDisaggregatedMoveToController is a task controller responsible for executing DtMoveToLocation...
Definition: disaggregatedMoveToController.h:34
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)