VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
indirectFireControllerDescriptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
15 #include "vrfutil/rwStringList.h"
16 #include <readerWriter/rwReal.h>
17 #include <readerWriter/rwInt.h>
18 #include <readerWriter/rwBoolean.h>
19 #include "vrfutil/simMunition.h"
23 
33 {
34 public:
37  DtReaderWriterRegistry * parentRegistry = nullptr);
39  DtReaderWriterRegistry * parentRegistry = nullptr);
40 
44  DtReaderWriterRegistry* parentRegistry = nullptr);
45 
49 
52 
55  virtual DtString type() const override;
57 
60  virtual const DtString& weaponName() const;
61  virtual void setWeaponName(const DtString& name);
63 
66  virtual const DtRwStringList & defaultAmmoList() const;
67  virtual void setDefaultAmmoList(const DtRwStringList & list);
69 
72  virtual int numRoundsPerMission() const;
73  virtual void setNumRoundsPerMission(int numRoundsPerMission);
75 
78  virtual bool enforceRangeLimits() const;
79  virtual void setEnforceRangeLimits(bool limit);
81 
84  virtual bool allowVelocityVariation() const;
85  virtual void setAllowVelocityVariation(bool allow);
87 
90  virtual const DtNLengthRealVector& muzzleSpeedList() const;
91  virtual void setMuzzleSpeedList(const DtNLengthRealVector& muzzleSpeeds);
93 
96  virtual const DtString& rangeName() const;
97  virtual void setRangeName(const DtString& rangeName);
99 
102  virtual int rangeId() const;
103  virtual void setRangeId(int rangeId);
104  virtual bool rangeIdIsSpecified() const;
106 
109  virtual DtReal minRange() const;
110  virtual void setMinRange(DtReal minRange);
112 
115  virtual DtReal maxRange() const;
116  virtual void setMaxRange(DtReal maxRange);
118 
121  virtual DtReal minAltitude() const;
122  virtual void setMinAltitude(DtReal minAlt);
124 
127  virtual DtReal maxAltitude() const;
128  virtual void setMaxAltitude(DtReal maxAlt);
130 
133  virtual DtReal preferredAltitude() const;
134  virtual void setPreferredAltitude(DtReal prefAlt);
136 
139  virtual bool isDirectAlignmentCapable() const;
140  virtual void setIsDirectAlignmentCapable(bool direct);
142 
145  virtual bool useScriptedTasks() const;
146  virtual void setUseScriptedTasks(bool useScripted);
148 
149  virtual const DtRwNLengthStringVector& customFireTasks() const;
150  virtual DtRwNLengthStringVector& customFireTasks();
151 
152  virtual const DtRwProperties& weaponProperties() const;
153  virtual DtRwProperties& weaponProperties();
154 
155  virtual DtComponentDescriptor* clone(
156  DtReaderWriterRegistry* parentRegistry = nullptr) const override;
157 
159  static DtComponentDescriptor* creator();
160 
163  virtual const DtTargetingControlTable& targetingControlTable() const;
164  virtual DtTargetingControlTable& targetingControlTable();
166 
168  virtual void postGetSelf() override;
169 
170 protected:
173 
174 protected:
175 
179 
184 
190 
199 
204 
209 
219 
226 
233 
242 
247 
254 
260 
269 
277 
284 
291 
292 
297 
302 
304 };
DtBaseWeaponControllerDescriptor & operator=(const DtBaseWeaponControllerDescriptor &orig)
assignment
DtRwBoolean myUseScriptedTasks
Parameter Name: use-scripted-tasks Parameter Description: Set to false will use the old built in Fire...
Definition: indirectFireControllerDescriptor.h:290
static DtComponentDescriptor * creator()
DtNLengthRealVector myMuzzleSpeedList
Parameter Name: muzzle-speed-list Parameter Description: Specifies a discrete list of muzzle speeds t...
Definition: indirectFireControllerDescriptor.h:218
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
DtRwNLengthStringVector is a named, readable/writable vector of strings of arbitrary length...
Definition: rwNLengthStringVector.h:28
DtIndirectFireControllerDescriptor; descriptor for the DtIndirectFireController compenent.
Definition: indirectFireControllerDescriptor.h:31
virtual void postGetSelf()
Called after either version of getSelf (mtl or environment). Default is no-op.
DtRwBoolean myAllowVelocityVariation
Parameter Name: allow-velocity-variation In some instances the user might to define an initial muzzle...
Definition: indirectFireControllerDescriptor.h:276
DtRwProperties myWeaponProperties
Parameter Name: weapon-properties Parameter Description: A flexible list of RW properties that can be...
Definition: indirectFireControllerDescriptor.h:301
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
This file contains the class declaration for the.
DtRwReal myMaxAltitude
Parameter Name: max-altitude Parameter Description: Maximum altitude above the shooter or target (whi...
Definition: indirectFireControllerDescriptor.h:232
virtual DtString type() const override
Returns the type of component this descriptor describes. Used to create the descriptor on read from a...
DtRwReal myPreferredAltitude
Parameter Name: preferred-altitude Parameter Description: Preferred altitude above the shooter or tar...
Definition: indirectFireControllerDescriptor.h:241
DtTargetingControlTable myTargetingControlTable
Parameter Name: targeting-control-table Parameter Description: The table that will specify ammunition...
Definition: indirectFireControllerDescriptor.h:283
DtRwInt myNumRoundsPerMission
Parameter Name: num-rounds-per-mission Parameter Description: Default number of rounds to fire (if th...
Definition: indirectFireControllerDescriptor.h:189
DtRwString myWeaponDisplayName
Parameter Name: weapon-name Parameter Description: User friendly name associated this weapon...
Definition: indirectFireControllerDescriptor.h:259
DtRwReal myMinRange
Parameter Name: min-range Parameter Description: Minimum range of the weapon. Parameter Default Value...
Definition: indirectFireControllerDescriptor.h:203
DtRwReal myMaxRange
Parameter Name: max-range Parameter Description: Maximum range of the weapon. Parameter Default Value...
Definition: indirectFireControllerDescriptor.h:208
Description: Readable, Writable int.
Definition: rwInt.h:25
DtRwReal myMinAltitude
Parameter Name: min-altitude Parameter Description: Minimum altitude above the shooter or target (whi...
Definition: indirectFireControllerDescriptor.h:225
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=nullptr) const override
Description: DtNLengthRealVector is a named, readable/writable vector of integers of arbitrary length...
Definition: nLengthRealVector.h:26
DtBaseWeaponControllerDescriptor; descriptor for the DtBaseWeaponController component.
Definition: baseWeaponControllerDescriptor.h:30
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwInt myRangeId
Parameter Name: range-id Parameter Description: The identifying value for this range ring...
Definition: indirectFireControllerDescriptor.h:253
DtRwNLengthStringVector myCustomFireTasks
Parameter Name: custom-fire-tasks Parameter Description: Script IDs for lua fire tasks used to fire t...
Definition: indirectFireControllerDescriptor.h:296
DtRwBoolean myEnforceRangeLimits
Parameter Name: enforce-range-limits Parameter Description: User can choose to enforce minimum and ma...
Definition: indirectFireControllerDescriptor.h:198
DtRwBoolean myDirectAlignmentCapable
Parameter Name: capable-of-direct-alignment Parameter Description: Is this indirect fire weapon capab...
Definition: indirectFireControllerDescriptor.h:268
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
Definition: rwStringList.h:20
A list of properties. A DtPropertyInterface object that is a specialized version of DtRwVariableBindi...
Definition: rwProperties.h:126
DtRwString myRangeName
Parameter Name: range-name Parameter Description: Deprecated. Name given to any range item associated...
Definition: indirectFireControllerDescriptor.h:246
Definition: targetingControlTable.h:20
DtRwStringList myDefaultAmmoList
Parameter Name: default-ammo-list Parameter Description: Lists the types of ammunition available...
Definition: indirectFireControllerDescriptor.h:183

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)