VR-Forces 4.6.1 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(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 

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)