VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
destroyEngineeringObjectController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
13 #include "vlutil/vlString.h"
15 #include "vrfutil/rwVectorList.h"
16 
19 
22 {
23 public:
26  DtSimManager * simManager, DtComponentDescriptor* desc = NULL,
27  DtReaderWriterRegistry * parentRegistry = 0);
28 
31 
33  virtual bool init();
34 
35 private:
38 
41 
42 public:
43 
44  virtual const char* type() const;
45 
47  static DtSimComponent* creator(const DtString & name, DtVrfObject* owner,
48  DtSimManager * simManager, DtComponentDescriptor* desc,
49  DtReaderWriterRegistry * parentRegistry);
50 
59  static void destroyCallback(DtSimMessage* msg, void* usr);
60 
64  virtual void processDestroyTask(DtSimMessage* msg);
65 
68  virtual void registerTaskMsgCallbacks();
69 
71  virtual void clearTask();
72 
73 protected:
74 
76  virtual void processIdleState();
77 
80  virtual void processSettingUpState();
81 
84  virtual void processAffectingState();
85 
88  virtual void processAffectingPausedState();
89 
92  virtual void processMovingIntoRangeState();
93 
95  virtual void destroyObject(const DtVrfObject* obj);
96 
104  virtual bool updateDestructionRate(const DtVrfObject* obj, bool stop, bool forceSend);
105 
106 protected:
108 
110  std::map<DtString, DtRwAffectableEngineeringObject*> myEngInfoByTaskType;
111 
113  std::map<DtObjectType, DtRwAffectableEngineeringObject*> myEngInfoByObjType;
114 };
115 
#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 bool init()
Initializes the controller.
std::map< DtString, DtRwAffectableEngineeringObject * > myEngInfoByTaskType
Map of task types to engineering info.
Definition: destroyEngineeringObjectController.h:110
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
const DtDestroyEngineeringObjectControllerDescriptor * myDestroyEngineeringObjDesc
Definition: destroyEngineeringObjectController.h:107
virtual void clearTask()
If component is currently tasked, calls clearPendingSubtasks(), sets the tasked flag to false...
virtual const char * type() const =0
Returns a string identifies the class type of component.
This controller is responsible for destroying engineering objects.
Definition: destroyEngineeringObjectController.h:21
std::map< DtObjectType, DtRwAffectableEngineeringObject * > myEngInfoByObjType
Map of object types to engineering info.
Definition: destroyEngineeringObjectController.h:113
virtual void processIdleState()=0
Determines the next step to take during tick when in the idle state.
This is the base class for controllers which affect the creation and destruction of engineering objec...
Definition: affectEngineeringObjectController.h:21
File: simMsg.h.
Definition: simMessage.h:35
virtual void processAffectingPausedState()=0
Determines the next step to take during tick when in the affecting paused state (something has caused...
virtual void processMovingIntoRangeState()=0
Determines the next step to take during tick when in the moving into range state. ...
virtual void processAffectingState()=0
Determines the next step to take during tick when in the affecting state (while actively affecting an...
virtual void processSettingUpState()=0
Determines the next step to take during tick when in the setting up state (preparing to affect an obj...
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
virtual void registerTaskMsgCallbacks()
Registers interest in create engineering object tasks by calling addTaskProcessorCallback.
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
DtRwAffectableEngineeringObject holds a the information needed to know how a unit may create a type o...
Definition: rwAffectableEngineeringObject.h:22
DtAffectEngineeringObjectController & operator=(const DtAffectEngineeringObjectController &orig)
Not implemented.
DtDestroyEngineeringObjectControllerDescriptor is a DtComponentDescriptor that has additional informa...
Definition: destroyEngineeringObjectControllerDescriptor.h:19

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)