VR-Forces 5.0.1 Developer's Guide
 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 
6 #pragma once
7 
11 
12 class DtSimMessage;
13 class DtMoveToTask;
14 
29 {
30 public:
31 
35  DtLocalObject* owner,
36  DtSimulationServices* simManager,
37  DtComponentDescriptor* desc = 0,
38  DtReaderWriterRegistry* parentRegistry = 0);
39 
41 
42  virtual void tick();
43 
46  virtual const char* type() const;
47 
50  virtual void registerTaskMsgCallbacks();
51 
53  virtual void clearTask();
54 
58  static void moveToTaskCallback(DtSimMessage * msg, void * usr);
59 
61  static void taskCompleteReportCallback(DtSimMessage * msg, void * usr);
62 
66  static DtSimComponent * creator(const DtString& name,
67  DtLocalObject* owner,
68  DtSimulationServices* simManager,
69  DtComponentDescriptor* desc = 0,
70  DtReaderWriterRegistry* parentRegistry = 0);
71 
72 protected:
73 
75  virtual void onWaypointMoved(const DtSimObject* obj);
76 
80  virtual void onMoveToTask(DtSimMessage * msg);
81 
85  virtual void onTaskComplete(DtSimMessage * msg);
86 
88  virtual void startMoveToBehavior(const DtMoveToTask& moveToTask);
89 
90 protected:
94 
95 private:
96 
99 
102 };
103 
bool myFirstTick
Definition: disaggregatedMoveToController.h:92
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual void registerTaskMsgCallbacks()
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:20
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
File: moveToTask.h.
Definition: moveToTask.h:48
DtSimObjectReference myGoalObject
Definition: disaggregatedMoveToController.h:91
Definition: readerWriterRegistry.h:39
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
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:28
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
DtAggregateLocalObjectFacade myAggregateLocalObjectFacade
Definition: disaggregatedMoveToController.h:93
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:89
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:79
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)