VR-Forces 5.0.3 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;
43 
44  virtual DtComponentDescriptor * clone(DtReaderWriterRegistry * parentRegistry
45  = 0) const;
46 
49  virtual DtString weaponName() const;
50  virtual void setWeaponName(const DtString&);
52 
55  virtual double range() const;
56  virtual void setRange(double);
58 
61  virtual double radius() const;
62  virtual void setRadius(double);
64 
67  virtual double maxSheafRadius() const;
68  virtual void setMaxSheafRadius(double);
70 
73  virtual double hitFactor() const;
74  virtual void setHitFactor(double);
76 
79  virtual int strengthPerBomb() const;
80  virtual void setStrengthPerBomb(int);
82 
85  virtual double secondsPerBomb() const;
86  virtual void setSecondsPerBomb(double);
88 
91  virtual int bombsPerAttack() const;
92  virtual void setBombsPerAttack(int);
94 
97  virtual DtString damageType() const;
98  virtual void setDamageType(const DtString&);
100 
103  virtual std::set<DtString> availablePostures() const;
104  virtual void setAvailablePostures(const std::set<DtString>&);
106 
109  virtual DtString availablePosturesString() const;
110  virtual void setAvailablePosturesString(const DtString&);
112 
115  virtual const DtReal jammingDefenseFactor() const;
116  virtual void setJammingDefenseFactor(const DtReal factor);
118 
121  virtual const bool canBeRadarJammed() const;
122  virtual void setCanBeRadarJammed(const bool jammable);
124 
127  virtual DtString guidanceSystem() const;
128  virtual void setGuidanceSystem(const DtString&);
130 
132  static DtComponentDescriptor * creator();
133 
134 protected:
137 
138 protected:
139 
143 
148 
153 
158 
166 
171 
176 
181 
186 
191 
196 
198  mutable std::set<DtString> myAvailablePosturesSet;
199 
205 
211 
217 };
218 
DtRwReal myRadius
Parameter Name: radius Parameter Description: The radius (in meters) of the blast caused by the bomb...
Definition: aggregateReleaseBombControllerDescriptor.h:157
DtRwString myWeaponName
Parameter Name: weapon-name Parameter Description: The name of the type of bomb. Parameter Default Va...
Definition: aggregateReleaseBombControllerDescriptor.h:147
DtRwReal myMaxSheafRadius
Parameter Name: max-sheaf-radius Parameter Description: The maximum radius (in meters) of the pattern...
Definition: aggregateReleaseBombControllerDescriptor.h:165
DtRwInt myBombsPerAttack
Parameter Name: bombs-per-attack Parameter Description: The number of bombs that are released at once...
Definition: aggregateReleaseBombControllerDescriptor.h:185
#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:175
DtRwReal myHitFactor
Parameter Name: hit-factor Parameter Description: The effectiveness of the guidance capabilities of t...
Definition: aggregateReleaseBombControllerDescriptor.h:170
DtScriptEnableControllerDescriptor is a DtComponentDescriptor that provides parameters to the DtScrip...
Definition: scriptEnableControllerDescriptor.h:20
virtual DtString type() const
Returns the type of component this descriptor describes. Used to create the descriptor on read from a...
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:152
DtRwReal mySecondsPerAttack
Parameter Name: seconds-per-bomb Parameter Description: The length of time it takes to drop a single ...
Definition: aggregateReleaseBombControllerDescriptor.h:180
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:215
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=0) const
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:190
std::set< DtString > myAvailablePosturesSet
The set is updated when myAvailablePostures is first accessed.
Definition: aggregateReleaseBombControllerDescriptor.h:198
DtScriptEnableControllerDescriptor & operator=(const DtScriptEnableControllerDescriptor &orig)
assignment
DtRwString myAvailablePostures
Parameter Name: available-postures Parameter Description: The list of postures in which this task is ...
Definition: aggregateReleaseBombControllerDescriptor.h:195
DtRwBoolean myCanBeRadarJammed
Parameter Name: can-be-radar-jammed Parameter Description: True if this system uses radar and is ther...
Definition: aggregateReleaseBombControllerDescriptor.h:204
DtRwReal myJammingDefenseFactor
Parameter Name: jamming-defense-factor Parameter Description: A defensive strength against jamming...
Definition: aggregateReleaseBombControllerDescriptor.h:210
DtAggregateReleaseBombControllerDescriptor is a DtComponentDescriptor that has additional information...
Definition: aggregateReleaseBombControllerDescriptor.h:23

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)