VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aggregateIndirectFireControllerDescriptor.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 
18 
20 {
21 public:
24  DtReaderWriterRegistry * parentRegistry = 0);
25 
28  orig, DtReaderWriterRegistry * parentRegistry = 0);
29 
33 
36 
38  virtual DtString type() const;
39 
40  virtual DtComponentDescriptor * clone(DtReaderWriterRegistry * parentRegistry
41  = 0) const;
42 
45  virtual DtString weaponName() const;
46  virtual void setWeaponName(const DtString&);
48 
51  virtual double range() const;
52  virtual void setRange(double);
54 
57  virtual double radius() const;
58  virtual void setRadius(double);
60 
63  virtual double maxSheafRadius() const;
64  virtual void setMaxSheafRadius(double);
66 
69  virtual double hitFactor() const;
70  virtual void setHitFactor(double);
72 
75  virtual int strengthPerAttack() const;
76  virtual void setStrengthPerAttack(int);
78 
81  virtual double secondsPerAttack() const;
82  virtual void setSecondsPerAttack(double);
84 
87  virtual int ammunitionPerAttack() const;
88  virtual void setAmmunitionPerAttack(int);
90 
93  virtual DtString damageType() const;
94  virtual void setDamageType(const DtString&);
96 
99  virtual std::set<DtString> availablePostures() const;
100  virtual void setAvailablePostures(const std::set<DtString>&);
102 
105  virtual DtString availablePosturesString() const;
106  virtual void setAvailablePosturesString(const DtString&);
108 
111  virtual DtString guidanceSystem() const;
112  virtual void setGuidanceSystem(const DtString&);
114 
116  static DtComponentDescriptor * creator();
117 
118 protected:
121 
122 protected:
123 
127 
132 
137 
142 
150 
155 
161 
166 
172 
177 
182 
187 
189  mutable std::set<DtString> myAvailablePosturesSet;
191 };
192 
DtRwReal myRadius
Parameter Name: radius Parameter Description: The radius (in meters) of the blast caused by the shell...
Definition: aggregateIndirectFireControllerDescriptor.h:141
DtRwString myDamageType
Parameter Name: damage-category Parameter Description: The type of damage the weapon deals...
Definition: aggregateIndirectFireControllerDescriptor.h:176
DtRwInt myStrengthPerAttack
Parameter Name: strength-per-attack Parameter Description: The amount of damage this weapon can deal ...
Definition: aggregateIndirectFireControllerDescriptor.h:160
DtRwReal mySecondsPerAttack
Parameter Name: seconds-per-attack Parameter Description: The duration of a single attack in seconds...
Definition: aggregateIndirectFireControllerDescriptor.h:165
#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
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
DtRwInt myAmmunitionPerAttack
Parameter Name: ammunition-per-attack Parameter Description: The number of rounds of ammunition used ...
Definition: aggregateIndirectFireControllerDescriptor.h:171
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtAggregateIndirectFireControllerDescriptor is a DtComponentDescriptor that has additional informatio...
Definition: aggregateIndirectFireControllerDescriptor.h:19
DtRwString myGuidanceSystem
Parameter Name: guidance-system Parameter Description: The type of guidance system used by this munit...
Definition: aggregateIndirectFireControllerDescriptor.h:186
DtRwReal myMaxSheafRadius
Parameter Name: max-sheaf-radius Parameter Description: The maximum radius (in meters) of the pattern...
Definition: aggregateIndirectFireControllerDescriptor.h:149
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=0) const
DtRwReal myRange
Parameter Name: range Parameter Description: The range (in meters) this weapon can fire...
Definition: aggregateIndirectFireControllerDescriptor.h:136
DtRwString myWeaponName
Parameter Name: weapon-name Parameter Description: The name of the weapon. Parameter Default Value: &quot;...
Definition: aggregateIndirectFireControllerDescriptor.h:131
DtScriptEnableControllerDescriptor & operator=(const DtScriptEnableControllerDescriptor &orig)
assignment
std::set< DtString > myAvailablePosturesSet
The set is updated when myAvailablePostures is first accessed.
Definition: aggregateIndirectFireControllerDescriptor.h:189
DtRwString myAvailablePostures
Parameter Name: available-postures Parameter Description: The list of postures in which this task is ...
Definition: aggregateIndirectFireControllerDescriptor.h:181
DtRwReal myHitFactor
Parameter Name: hit-factor Parameter Description: The effectiveness of the guidance capabilities of t...
Definition: aggregateIndirectFireControllerDescriptor.h:154

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)