VR-Forces 4.10 Class Documentation
 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) 2018 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>
20 
25 {
26 public:
29  DtReaderWriterRegistry* parentRegistry = NULL);
30 
32  DtReaderWriterRegistry* parentRegistry = NULL);
33 
37  DtReaderWriterRegistry* parentRegistry = NULL);
38 
42 
45 
48  virtual DtString type() const;
49 
51  DtReaderWriterRegistry* parentRegistry = NULL) const;
52 
54 
55  virtual DtTime loadAmmoTime() const;
56  virtual void setLoadAmmoTime(DtTime loadTime);
58 
60 
61  virtual DtTime unloadAmmoTime() const;
62  virtual void setUnloadAmmoTime(DtTime unloadTime);
64 
66 
67  virtual int roundsPerTriggerPull() const;
68  virtual void setRoundsPerTriggerPull(int value);
70 
72 
73  virtual const DtAmmoSelectTable& ammoSelectTable() const;
74  virtual void setAmmoSelectTable(const DtAmmoSelectTable& table);
76 
78 
79  virtual const DtString& ammoSelectTableFilename();
80  virtual void setAmmoSelectTableFilename(const DtString& filename);
82 
84 
85  virtual DtTargetSelectionCriteria& targetSelectionCriteria();
86  virtual const DtTargetSelectionCriteria& targetSelectionCriteria() const;
88 
91 
92  virtual bool disabledBySuppression() const;
93  virtual void setDisabledBySuppression(const bool isDisabled);
95 
98  virtual bool treatSelectedAsTasked() const;
99  virtual void setTreatSelectedAsTasked(bool t);
101 
104  virtual const DtTargetingControlTable& targetingControlTable() const;
105  virtual DtTargetingControlTable& targetingControlTable();
107 
113  virtual DtString requiredTokensString() const;
114  virtual std::set<DtString> requiredTokens() const;
115  virtual void setRequiredTokensString(const DtString& tokens);
117 
120  virtual int gunPriority() const;
121  virtual void setGunPriority(const int p);
123 
125  static DtComponentDescriptor* creator();
126 
129  virtual void postGetSelf();
130 
131 protected:
134 
135 protected:
139 
146 
154 
160 
166 
175 
182 
190 
191 
201 
214 
223 
230 
232 
236  mutable std::set<DtString> myRequiredTokenSet;
237 
238 };
DtRwString myRequiredTokens
Parameter Name: required-tokens Parameter Description: A list of strings that name the &quot;token resourc...
Definition: ballisticGunControllerDescriptor.h:213
Definition: symbolString.h:20
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
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:189
DtTargetSelectionCriteria myTargetSelectionCriteria
Parameter Name: targeting-control Parameter Description: List of DtTargetSelectionCriteria objects...
Definition: ballisticGunControllerDescriptor.h:181
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:42
DtRwTime myLoadAmmoTime
Parameter Name: load-ammo-time Parameter Description: The time delay from the time an ammo is selecte...
Definition: ballisticGunControllerDescriptor.h:145
Definition: readerWriterRegistry.h:39
DtTargetingControlTable myTargetingControlTable
Parameter Name: targeting-control-table Parameter Description: The table that will specify ammunition...
Definition: ballisticGunControllerDescriptor.h:229
DtComponentDescriptor & operator=(const DtComponentDescriptor &orig)
assignment
Defines a criteria for choosing targets for a single weapon system.
Definition: targetSelectionCriteria.h:27
DtRwBoolean myTreatSelectedAsTasked
Parameter Name: treat-selected-target-as-tasked Parameter Description: a boolean that indicates that ...
Definition: ballisticGunControllerDescriptor.h:200
DtReaderWriterFile myAmmoSelectTableFile
Parameter Name: ammo-select-table-file Parameter Description: Sets the filename used for the ammo sel...
Definition: ballisticGunControllerDescriptor.h:159
DtRwInt myGunPriority
Parameter Name: gun-priority Parameter Description: A priority among all guns mounted on the same tur...
Definition: ballisticGunControllerDescriptor.h:222
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:153
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=NULL) const
DtAmmoSelectTable is a readable/writable list of DtAmmoSelectEntrys.
Definition: ammoSelectTable.h:27
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.
Definition: ballisticGunControllerDescriptor.h:236
virtual DtString type() const
Returns the type of component this descriptor describes.
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:165
DtBallisticGunControllerDescriptor, descriptor for the DtBallisticGunController component.
Definition: ballisticGunControllerDescriptor.h:24
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:174
Definition: targetingControlTable.h:20

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)