VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
launchExpendableResourceControllerDescriptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
16 
17 #include <readerWriter/rwReal.h>
18 #include <readerWriter/rwBoolean.h>
19 #include "readerWriter/rwVector.h"
20 #include "vrfutil/rwTaitBryan.h"
21 #include <readerWriter/rwInt.h>
23 #include "vrfutil/rwResource.h"
27 
28 //Vrlink includes
29 #include <vlpi/disEnums.h>
30 
39 
41 {
42 public:
46  DtReaderWriterRegistry * parentRegistry = 0);
47 
50  orig, DtReaderWriterRegistry * parentRegistry = 0);
51 
55 
58 
61  virtual DtString type() const override;
62 
63  virtual DtComponentDescriptor * clone(DtReaderWriterRegistry* parentRegistry = 0) const override;
64 
67  virtual DtReal projectileStartSpeed() const;
68  virtual void setProjectileStartSpeed(DtReal startSpeed);
70 
73  virtual DtVector launcherOffset() const;
74  virtual void setLauncherOffset(const DtVector& offset);
76 
79  virtual DtTaitBryan launchOrientation() const;
80  virtual void setLaunchOrientation(const DtTaitBryan& orient);
82 
85  virtual bool autoLaunchEnabled() const;
86  virtual void setAutoLaunchEnabled(bool enable);
88 
91  virtual int munitionBin() const;
92  virtual void setMunitionBin(int minRange);
94 
97  virtual const double autoLaunchRange() const;
98  virtual void setAutoLaunchRange(const double range);
100 
103  virtual const double autoLaunchResetTime() const;
104  virtual void setAutoLaunchResetTime(const double time);
106 
109  virtual const DtEntityType& autoLaunchResource() const;
110  virtual void setAutoLaunchResource(const DtEntityType& Name);
112 
115  virtual const int autoLaunchResourceAmount() const;
116  virtual void setAutoLaunchResourceAmount(const int amount);
118 
121  virtual const double autoLaunchResourceInterval() const;
122  virtual void setAutoLaunchResourceInterval(const double interval);
124 
127  virtual const DtAmmoSelectTable& counterMeasuresSelectTable() const;
128  virtual void setCounterMeasuresSelectTable(const DtAmmoSelectTable& table);
130 
133  virtual void setCounterMeasuresSelectTableFilename(const DtString& filename);
134  virtual const DtString& counterMeasuresSelectTableFilename();
136 
139  virtual const LaunchableResources& launchableResources() const;
140  virtual void setLaunchableResources(const LaunchableResources& resourceList);
142 
144  static DtComponentDescriptor * creator();
145 
146 protected:
149 
150 protected:
151 
155 
163 
169 
175 
181 
187 
193 
198 
204 
211 
223 
230 
234 
240 };
241 
DtRwTaitBryan myLaunchOrientation
Parameter Name: launch-orientation Parameter Description: //! Initial orientation (relative to the la...
Definition: launchExpendableResourceControllerDescriptor.h:229
DtRwReal myAutoLaunchResourceInterval
Parameter Name: auto-launch-resource-interval Parameter Description: The default time between each re...
Definition: launchExpendableResourceControllerDescriptor.h:192
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
DtRwReal myAutoLaunchRange
Parameter Name: auto-launch-range Parameter Description: Range within which the auto launcher will be...
Definition: launchExpendableResourceControllerDescriptor.h:168
DtRwOffsetVector myLauncherOffset
Parameter Name: launcher-offset Offset from origin of launch vehicle where the resource object will b...
Definition: launchExpendableResourceControllerDescriptor.h:222
DtLaunchExpendableResourceControllerDescriptor; descriptor for the DtLaunchExpendableResourceControll...
Definition: launchExpendableResourceControllerDescriptor.h:40
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
DtRwReal myAutoLaunchResetTime
Parameter Name: auto-launch-reset-time Parameter Description: Time between auto launch tasks Paramete...
Definition: launchExpendableResourceControllerDescriptor.h:174
Description: Readable, Writable DtTaitBryan.
Definition: rwTaitBryan.h:20
Definition: readerWriterRegistry.h:39
DtComponentDescriptor & operator=(const DtComponentDescriptor &orig)
assignment
DtRwReal myProjectileStartSpeed
Parameter Name: projectile-start-speed Parameter Description: Used in calculating the projectile velo...
Definition: launchExpendableResourceControllerDescriptor.h:210
Contains the DtRwTaitBryan class declaration.
DtRwInt myMunitionBin
Parameter Name: munition-bin Parameter Description: The number of the resource bin to look for muniti...
Definition: launchExpendableResourceControllerDescriptor.h:238
DtRwResource myAutoLaunchResource
Parameter Name: auto-launch-default-resource Parameter Description: Name of resource to use in the au...
Definition: launchExpendableResourceControllerDescriptor.h:180
Description: Readable, Writable int.
Definition: rwInt.h:25
DtRwBoolean myAutoLaunchEnabled
Parameter Name: auto-launch-enabled Parameter Description: When enabled the controller will check for...
Definition: launchExpendableResourceControllerDescriptor.h:162
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=NULL) const
LaunchableResources myLaunchableResources
Parameter Name: launchable-resources Parameter Description: The resources that can be launched by thi...
Definition: launchExpendableResourceControllerDescriptor.h:233
DtAmmoSelectTable is a readable/writable list of DtAmmoSelectEntrys. It&#39;s sorted by the entity type i...
Definition: ammoSelectTable.h:22
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtAmmoSelectTable myCMSelectTable
Parameter Name: counter-measures-select-table Parameter Description: Table that provides a list of co...
Definition: launchExpendableResourceControllerDescriptor.h:203
virtual DtString type() const
Returns the type of component this descriptor describes. Used to create the descriptor on read from a...
Specialized vector that can be used for the knowledge of an &quot;offset&quot; rather than location vector...
Definition: rwVector.h:112
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
static DtComponentDescriptor * creator()
voidpf uLong offset
Definition: ioapi.h:42
Using a DtReaderWriterFile allows a DtReaderWriter object to be read in from an MTL stream contained ...
Definition: readerWriterFile.h:35
This class will read in an old resource by name and convert it to the type, or, just read it as type...
Definition: rwResource.h:12
Contains the DtAmmoSelectTable class declaration.
File: rwVector.h.
DtReaderWriterFile myCMSelectTableFile
Parameter Name: counter-measures-select-table-file Parameter Description: Filename used for the count...
Definition: launchExpendableResourceControllerDescriptor.h:197
DtRwInt myAutoLaunchResourceAmount
Parameter Name: auto-launch-number-of-resources Parameter Description: The default number of resource...
Definition: launchExpendableResourceControllerDescriptor.h:186

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)