VR-Forces 4.1.1 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 
52  static void launchExpendableResourceTaskCallback(DtSimMessage * msg, void * usr);
53 
54  static void setAutoLaunchEnabledCallback(DtSimMessage * msg, void * usr);
55 
58  virtual void processLaunchExpendableResourceTask(DtSimMessage * msg);
59 
62  virtual void processSetAutoLaunchEnabled(DtSimMessage* msg);
63 
66  virtual bool init();
67 
71  virtual void preFirstTickInit();
72 
75  virtual void tick();
76 
78  virtual void taskComplete(bool success = true);
79 
81  static DtSimComponent* creator(const DtString & name, DtVrfObject* owner,
82  DtSimManager * simManager, DtComponentDescriptor* desc,
83  DtReaderWriterRegistry * parentRegistry);
84 
88  virtual DtMunitionResource* lookupExpendableResource(const DtString & resourceName);
89 
95  virtual bool launchExpendableResources(int numberToFire);
96 
97 protected:
98 
100  virtual bool createPSR();
101 
106  virtual bool autoLaunchTriggered();
107 
108  virtual DtString selectResourceForAutoLaunch(const DtObjectType & missileType);
109 
110  virtual void setupAutoLaunchTriggerList();
111  virtual void setUpAutoLaunchTaskFromDescriptor();
112 
114  DtVrfObject* createResourceObject(const DtObjectType & objType);
115 
116 protected:
118 
122 
127 
129 };
130 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)