VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
weaponControllerDescriptor.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 
18 #include "vrfutil/simClock.h"
21 
27 {
28 public:
31  DtReaderWriterRegistry * parentRegistry = 0);
32 
35  orig, DtReaderWriterRegistry * parentRegistry = 0);
36 
40 
42  virtual ~DtWeaponControllerDescriptor() override;
43 
46  virtual DtString type() const override;
47 
48  virtual DtComponentDescriptor * clone(DtReaderWriterRegistry* parentRegistry = 0) const override;
49 
52  virtual const DtAmmoSelectTable& ammoSelectTable() const;
53  virtual void setAmmoSelectTable(const DtAmmoSelectTable& table);
55 
58  virtual void setAmmoSelectTableFilename(const DtString& filename);
59  virtual const DtString& ammoSelectTableFilename();
61 
64  virtual const DtString& rangeName() const;
65  virtual void setRangeName(const DtString& rangeName);
67 
70  virtual int rangeId() const;
71  virtual void setRangeId(int rangeId);
72  virtual bool rangeIdIsSpecified() const;
74 
77  virtual double taskGiveUpTime() const;
78  virtual void setTaskGiveUpTime(double taskGiveUpTime);
80 
82 
83  virtual DtTargetSelectionCriteria& targetSelectionCriteria();
84  virtual const DtTargetSelectionCriteria& targetSelectionCriteria() const;
86 
89  virtual const DtTargetingControlTable& targetingControlTable() const;
90  virtual DtTargetingControlTable& targetingControlTable();
92 
95  virtual const DtRwProperties& weaponProperties() const;
96  virtual DtRwProperties& weaponProperties();
98 
101  virtual void postGetSelf() override;
102 
104  static DtComponentDescriptor * creator();
105 
106 protected:
109 
110 protected:
111 
115 
120 
126 
132 
138 
144 
151 
158 
164 };
DtBaseWeaponControllerDescriptor & operator=(const DtBaseWeaponControllerDescriptor &orig)
assignment
static DtComponentDescriptor * creator()
#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.
DtTargetSelectionCriteria myTargetSelectionCriteria
Parameter Name: targeting-control Parameter Description: List of DtTargetSelectionCriteria objects...
Definition: weaponControllerDescriptor.h:150
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
DtAmmoSelectTable myAmmoSelectTable
Parameter Name: ammo-select-table Parameter Description: Table that provides a list of munitions that...
Definition: weaponControllerDescriptor.h:125
DtRwProperties myWeaponProperties
Parameter Name: weapon-properties Parameter Description: A flexible list of RW properties that can be...
Definition: weaponControllerDescriptor.h:162
DtRwInt myRangeId
Parameter Name: range-id Parameter Description: The identifying value for this range ring...
Definition: weaponControllerDescriptor.h:137
Definition: readerWriterRegistry.h:39
virtual DtString type() const override
Returns the type of component this descriptor describes. Used to create the descriptor on read from a...
Defines a criteria for choosing targets for a single weapon system. This class stores all the informa...
Definition: targetSelectionCriteria.h:27
File: vlClock.h.
Description: Readable, Writable int.
Definition: rwInt.h:25
DtRwString myRangeName
Parameter Name: range-name Parameter Description: Deprecated. Text name used when displaying the rang...
Definition: weaponControllerDescriptor.h:131
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=nullptr) const override
DtRwReal myTaskGiveUpTime
Parameter Name: task-give-up-time Parameter Description: The amount of time to wait (in seconds) befo...
Definition: weaponControllerDescriptor.h:143
DtAmmoSelectTable is a readable/writable list of DtAmmoSelectEntrys. It's sorted by the entity type i...
Definition: ammoSelectTable.h:27
DtBaseWeaponControllerDescriptor; descriptor for the DtBaseWeaponController component.
Definition: baseWeaponControllerDescriptor.h:30
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtReaderWriterFile myAmmoSelectTableFile
Parameter Name: ammo-select-table-file Parameter Description: Filename used for the ammo select table...
Definition: weaponControllerDescriptor.h:119
A list of properties. A DtPropertyInterface object that is a specialized version of DtRwVariableBindi...
Definition: rwProperties.h:122
Using a DtReaderWriterFile allows a DtReaderWriter object to be read in from an MTL stream contained ...
Definition: readerWriterFile.h:35
Definition: targetingControlTable.h:19
DtTargetingControlTable myTargetingControlTable
Parameter Name: targeting-control-table Parameter Description: The table that will specify ammunition...
Definition: weaponControllerDescriptor.h:157
DtWeaponControllerDescriptor; descriptor for the DtWeaponController component.
Definition: weaponControllerDescriptor.h:26

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)