VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aggregateReleaseBombControllerDescriptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
12 #include <readerWriter/rwInt.h>
13 #include <readerWriter/rwReal.h>
14 
22 
24 {
25 public:
28  DtReaderWriterRegistry * parentRegistry = 0);
29 
32  orig, DtReaderWriterRegistry * parentRegistry = 0);
33 
37 
40 
42  virtual DtString type() const override;
43 
44  virtual DtComponentDescriptor * clone(DtReaderWriterRegistry* parentRegistry = 0) const override;
45 
48  virtual DtString weaponName() const;
49  virtual void setWeaponName(const DtString&);
51 
54  virtual double range() const;
55  virtual void setRange(double);
57 
60  virtual double radius() const;
61  virtual void setRadius(double);
63 
66  virtual double maxSheafRadius() const;
67  virtual void setMaxSheafRadius(double);
69 
72  virtual double hitFactor() const;
73  virtual void setHitFactor(double);
75 
78  virtual int strengthPerBomb() const;
79  virtual void setStrengthPerBomb(int);
81 
84  virtual double secondsPerBomb() const;
85  virtual void setSecondsPerBomb(double);
87 
90  virtual int bombsPerAttack() const;
91  virtual void setBombsPerAttack(int);
93 
96  virtual DtString damageType() const;
97  virtual void setDamageType(const DtString&);
99 
102  virtual std::set<DtString> availablePostures() const;
103  virtual void setAvailablePostures(const std::set<DtString>&);
105 
108  virtual DtString availablePosturesString() const;
109  virtual void setAvailablePosturesString(const DtString&);
111 
114  virtual const DtReal jammingDefenseFactor() const;
115  virtual void setJammingDefenseFactor(const DtReal factor);
117 
120  virtual const bool canBeRadarJammed() const;
121  virtual void setCanBeRadarJammed(const bool jammable);
123 
126  virtual DtString guidanceSystem() const;
127  virtual void setGuidanceSystem(const DtString&);
129 
131  static DtComponentDescriptor * creator();
132 
133 protected:
136 
137 protected:
138 
142 
147 
152 
157 
165 
170 
175 
180 
185 
190 
195 
197  mutable std::set<DtString> myAvailablePosturesSet;
198 
204 
210 
216 };
217 
DtRwReal myRadius
Parameter Name: radius Parameter Description: The radius (in meters) of the blast caused by the bomb...
Definition: aggregateReleaseBombControllerDescriptor.h:156
DtRwString myWeaponName
Parameter Name: weapon-name Parameter Description: The name of the type of bomb. Parameter Default Va...
Definition: aggregateReleaseBombControllerDescriptor.h:146
DtRwReal myMaxSheafRadius
Parameter Name: max-sheaf-radius Parameter Description: The maximum radius (in meters) of the pattern...
Definition: aggregateReleaseBombControllerDescriptor.h:164
DtRwInt myBombsPerAttack
Parameter Name: bombs-per-attack Parameter Description: The number of bombs that are released at once...
Definition: aggregateReleaseBombControllerDescriptor.h:184
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
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
DtRwInt myStrengthPerBomb
Parameter Name: strength-per-bomb Parameter Description: The amount of damage a single bomb can cause...
Definition: aggregateReleaseBombControllerDescriptor.h:174
DtRwReal myHitFactor
Parameter Name: hit-factor Parameter Description: The effectiveness of the guidance capabilities of t...
Definition: aggregateReleaseBombControllerDescriptor.h:169
DtScriptEnableControllerDescriptor is a DtComponentDescriptor that provides parameters to the DtScrip...
Definition: scriptEnableControllerDescriptor.h:20
static DtComponentDescriptor * creator()
Description: Readable, Writable int.
Definition: rwInt.h:25
DtRwReal myRange
Parameter Name: range Parameter Description: The range (in meters) from the target the unit must be t...
Definition: aggregateReleaseBombControllerDescriptor.h:151
DtRwReal mySecondsPerAttack
Parameter Name: seconds-per-bomb Parameter Description: The length of time it takes to drop a single ...
Definition: aggregateReleaseBombControllerDescriptor.h:179
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwString myGuidanceSystem
Parameter Name: guidance-system Parameter Description: The type of guidance system used by this munit...
Definition: aggregateReleaseBombControllerDescriptor.h:214
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=0) const override
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtRwString myDamageType
Parameter Name: damage-type Parameter Description: The type of damage the bomb deals. Parameter Default Value: &quot;High-Explosive&quot; .
Definition: aggregateReleaseBombControllerDescriptor.h:189
std::set< DtString > myAvailablePosturesSet
The set is updated when myAvailablePostures is first accessed.
Definition: aggregateReleaseBombControllerDescriptor.h:197
DtScriptEnableControllerDescriptor & operator=(const DtScriptEnableControllerDescriptor &orig)
assignment
virtual DtString type() const override
Returns the type of component this descriptor describes. Used to create the descriptor on read from a...
DtRwString myAvailablePostures
Parameter Name: available-postures Parameter Description: The list of postures in which this task is ...
Definition: aggregateReleaseBombControllerDescriptor.h:194
DtRwBoolean myCanBeRadarJammed
Parameter Name: can-be-radar-jammed Parameter Description: True if this system uses radar and is ther...
Definition: aggregateReleaseBombControllerDescriptor.h:203
DtRwReal myJammingDefenseFactor
Parameter Name: jamming-defense-factor Parameter Description: A defensive strength against jamming...
Definition: aggregateReleaseBombControllerDescriptor.h:209
DtAggregateReleaseBombControllerDescriptor is a DtComponentDescriptor that has additional information...
Definition: aggregateReleaseBombControllerDescriptor.h:23

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)