VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ballisticGunControllerDescriptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 202 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <readerWriter/rwReal.h>
15 #include "vrfutil/simClock.h"
16 #include <readerWriter/rwInt.h>
22 
23 #include <tbb/spin_mutex.h>
24 
25 
30 {
31 public:
34  DtReaderWriterRegistry* parentRegistry = NULL);
35 
37  DtReaderWriterRegistry* parentRegistry = NULL);
38 
42  DtReaderWriterRegistry* parentRegistry = NULL);
43 
47 
49  virtual ~DtBallisticGunControllerDescriptor() override;
50 
53  virtual DtString type() const override;
54 
55  virtual DtComponentDescriptor* clone(DtReaderWriterRegistry* parentRegistry = NULL) const override;
56 
58 
59  virtual DtTime loadAmmoTime() const;
60  virtual void setLoadAmmoTime(DtTime loadTime);
62 
64 
65  virtual DtTime unloadAmmoTime() const;
66  virtual void setUnloadAmmoTime(DtTime unloadTime);
68 
70 
71  virtual int roundsPerTriggerPull() const;
72  virtual void setRoundsPerTriggerPull(int value);
74 
76 
77  virtual const DtAmmoSelectTable& ammoSelectTable() const;
78  virtual void setAmmoSelectTable(const DtAmmoSelectTable& table);
80 
82 
83  virtual const DtString& ammoSelectTableFilename();
84  virtual void setAmmoSelectTableFilename(const DtString& filename);
86 
88 
89  virtual DtTargetSelectionCriteria& targetSelectionCriteria();
90  virtual const DtTargetSelectionCriteria& targetSelectionCriteria() const;
92 
95 
96  virtual bool disabledBySuppression() const;
97  virtual void setDisabledBySuppression(const bool isDisabled);
99 
102  virtual const DtTargetingControlTable& targetingControlTable() const;
103  virtual DtTargetingControlTable& targetingControlTable();
105 
111  virtual DtString requiredTokensString() const;
112  virtual std::set<DtString> requiredTokens() const;
113  virtual void setRequiredTokensString(const DtString& tokens);
115 
117 
118  virtual const DtRwProperties& weaponProperties() const;
119  virtual DtRwProperties& weaponProperties();
121 
124  virtual int munitionBin() const;
125  virtual void setMunitionBin(int minRange);
127 
130  virtual const DtBallisticMunitionOverrideList& munitionOverrides() const;
132 
134  static DtComponentDescriptor* creator();
135 
138  virtual void postGetSelf() override;
139 
140 protected:
143 
144 protected:
148 
155 
163 
169 
175 
184 
191 
199 
200 
213 
220 
227 
232 
240 
242 
246  mutable std::set<DtString> myRequiredTokenSet;
247  mutable tbb::spin_mutex myRequiredTokensMutex;
248 };
DtRwString myRequiredTokens
Parameter Name: required-tokens Parameter Description: A list of strings that name the &quot;token resourc...
Definition: ballisticGunControllerDescriptor.h:212
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
tbb::spin_mutex myRequiredTokensMutex
Definition: ballisticGunControllerDescriptor.h:247
virtual void postGetSelf()
Called after either version of getSelf (mtl or environment). Default is no-op.
DtRwBoolean myDisabledBySuppression
Parameter Name: disabled-by-suppression Parameter Description: A boolean that indicates if this weapo...
Definition: ballisticGunControllerDescriptor.h:198
DtTargetSelectionCriteria myTargetSelectionCriteria
Parameter Name: targeting-control Parameter Description: List of DtTargetSelectionCriteria objects...
Definition: ballisticGunControllerDescriptor.h:190
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
DtRwTime myLoadAmmoTime
Parameter Name: load-ammo-time Parameter Description: The time delay from the time an ammo is selecte...
Definition: ballisticGunControllerDescriptor.h:154
Definition: readerWriterRegistry.h:39
DtTargetingControlTable myTargetingControlTable
Parameter Name: targeting-control-table Parameter Description: The table that will specify ammunition...
Definition: ballisticGunControllerDescriptor.h:219
DtComponentDescriptor & operator=(const DtComponentDescriptor &orig)
assignment
Defines a criteria for choosing targets for a single weapon system. This class stores all the informa...
Definition: targetSelectionCriteria.h:27
DtReaderWriterFile myAmmoSelectTableFile
Parameter Name: ammo-select-table-file Parameter Description: Sets the filename used for the ammo sel...
Definition: ballisticGunControllerDescriptor.h:168
File: vlClock.h.
Description: Readable, Writable int.
Definition: rwInt.h:25
DtRwTime myUnloadAmmoTime
Parameter Name: unload-ammo-time Parameter Description: The time is takes to remove ammo (of the wron...
Definition: ballisticGunControllerDescriptor.h:162
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=NULL) const
DtBallisticMunitionOverrideList; a keyed list of per-munition overrides for use on DtBallisticGunDesc...
Definition: ballisticMunitionOverrideList.h:22
DtAmmoSelectTable is a readable/writable list of DtAmmoSelectEntrys. It&#39;s sorted by the entity type i...
Definition: ammoSelectTable.h:22
DtBallisticMunitionOverrideList myMunitionOverrides
Parameter Name: munition-overrides Parameter Description: Optional per-munition override list...
Definition: ballisticGunControllerDescriptor.h:239
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
std::set< DtString > myRequiredTokenSet
The tokens in a set rather than a comma-separated list in one string. This is mutable because it is s...
Definition: ballisticGunControllerDescriptor.h:246
virtual DtString type() const
Returns the type of component this descriptor describes. Used to create the descriptor on read from a...
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
static DtComponentDescriptor * creator()
DtAmmoSelectTable myAmmoSelectTable
Parameter Name: ammo-select-table Parameter Description: Table of target types versus lists of priori...
Definition: ballisticGunControllerDescriptor.h:174
A list of properties. A DtPropertyInterface object that is a specialized version of DtRwVariableBindi...
Definition: rwProperties.h:122
DtBallisticGunControllerDescriptor, descriptor for the DtBallisticGunController component.
Definition: ballisticGunControllerDescriptor.h:29
Using a DtReaderWriterFile allows a DtReaderWriter object to be read in from an MTL stream contained ...
Definition: readerWriterFile.h:35
DtRwInt myRoundsPerTriggerPull
Parameter Name: rounds-per-trigger-pull Parameter Description: The number of rounds to fire for each ...
Definition: ballisticGunControllerDescriptor.h:183
Definition: targetingControlTable.h:19
DtRwProperties myWeaponProperties
Parameter Name: weapon-properties Parameter Description: A flexible collection of static properties t...
Definition: ballisticGunControllerDescriptor.h:226
Contains the DtAmmoSelectTable class declaration.
DtRwInt myMunitionBin
Parameter Name: munition-bin Parameter Description: The number of the resource bin to look for muniti...
Definition: ballisticGunControllerDescriptor.h:231

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)