VR-Forces 4.2 Class Documentation
launchExpendableResourceController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include "vlutil/vlString.h"
14 
18 class DtMunitionResource;
19 
26 {
27 public:
30  DtSimManager * simManager, DtComponentDescriptor* desc = NULL,
31  DtReaderWriterRegistry * parentRegistry = 0);
32 
35 
38 
41 
44  virtual DtString type() const;
45 
47  virtual void registerTaskMsgCallbacks();
48 
49  static void setAutoLaunchEnabledCallback(DtSimMessage * msg, void * usr);
50 
51  static void launchCallback(DtSimMessage* msg, void* usr, DtSimTaskStatePtr taskStatePtr);
52 
53  virtual DtSimTaskStatePtr currentTaskState() const;
54 
57  virtual void processSetAutoLaunchEnabled(DtSimMessage* msg);
58 
61  virtual bool init();
62 
66  virtual void preFirstTickInit();
67 
70  virtual void tick();
71 
73  virtual void taskComplete(bool success = true);
74 
76  static DtSimComponent* creator(const DtString & name, DtVrfObject* owner,
77  DtSimManager * simManager, DtComponentDescriptor* desc,
78  DtReaderWriterRegistry * parentRegistry);
79 
83  virtual DtMunitionResource* lookupExpendableResource(const DtString & resourceName);
84 
90  virtual bool launchExpendableResources(int numberToFire);
91 
92 protected:
93  virtual void processLaunch(const DtTaskMessage& msg, DtSimTaskStatePtr taskStatePtr);
94 
96  virtual bool createPSR();
97 
102  virtual bool autoLaunchTriggered();
103 
104  virtual DtString selectResourceForAutoLaunch(const DtObjectType & missileType);
105 
106  virtual void setupAutoLaunchTriggerList();
107  virtual void setUpAutoLaunchTaskFromDescriptor();
108 
110  DtVrfObject* createResourceObject(const DtObjectType & objType);
111 
112 protected:
114 
118 
123 
125 };
126 

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)