VR-Forces 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 override;
39 
40  virtual DtComponentDescriptor * clone(DtReaderWriterRegistry* parentRegistry = 0) const override;
41 
44  virtual DtString weaponName() const;
45  virtual void setWeaponName(const DtString&);
47 
50  virtual double range() const;
51  virtual void setRange(double);
53 
56  virtual double radius() const;
57  virtual void setRadius(double);
59 
62  virtual double maxSheafRadius() const;
63  virtual void setMaxSheafRadius(double);
65 
68  virtual double hitFactor() const;
69  virtual void setHitFactor(double);
71 
74  virtual int strengthPerAttack() const;
75  virtual void setStrengthPerAttack(int);
77 
80  virtual double secondsPerAttack() const;
81  virtual void setSecondsPerAttack(double);
83 
86  virtual int ammunitionPerAttack() const;
87  virtual void setAmmunitionPerAttack(int);
89 
92  virtual DtString damageType() const;
93  virtual void setDamageType(const DtString&);
95 
98  virtual std::set<DtString> availablePostures() const;
99  virtual void setAvailablePostures(const std::set<DtString>&);
101 
104  virtual DtString availablePosturesString() const;
105  virtual void setAvailablePosturesString(const DtString&);
107 
110  virtual DtString guidanceSystem() const;
111  virtual void setGuidanceSystem(const DtString&);
113 
115  static DtComponentDescriptor * creator();
116 
117 protected:
120 
121 protected:
122 
126 
131 
136 
141 
149 
154 
160 
165 
171 
176 
181 
186 
188  mutable std::set<DtString> myAvailablePosturesSet;
190 };
191 
DtRwReal myRadius
Parameter Name: radius Parameter Description: The radius (in meters) of the blast caused by the shell...
Definition: aggregateIndirectFireControllerDescriptor.h:140
DtRwString myDamageType
Parameter Name: damage-category Parameter Description: The type of damage the weapon deals...
Definition: aggregateIndirectFireControllerDescriptor.h:175
DtRwInt myStrengthPerAttack
Parameter Name: strength-per-attack Parameter Description: The amount of damage this weapon can deal ...
Definition: aggregateIndirectFireControllerDescriptor.h:159
DtRwReal mySecondsPerAttack
Parameter Name: seconds-per-attack Parameter Description: The duration of a single attack in seconds...
Definition: aggregateIndirectFireControllerDescriptor.h:164
#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
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:170
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=0) const override
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:185
DtRwReal myMaxSheafRadius
Parameter Name: max-sheaf-radius Parameter Description: The maximum radius (in meters) of the pattern...
Definition: aggregateIndirectFireControllerDescriptor.h:148
DtRwReal myRange
Parameter Name: range Parameter Description: The range (in meters) this weapon can fire...
Definition: aggregateIndirectFireControllerDescriptor.h:135
DtRwString myWeaponName
Parameter Name: weapon-name Parameter Description: The name of the weapon. Parameter Default Value: &quot;...
Definition: aggregateIndirectFireControllerDescriptor.h:130
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...
std::set< DtString > myAvailablePosturesSet
The set is updated when myAvailablePostures is first accessed.
Definition: aggregateIndirectFireControllerDescriptor.h:188
DtRwString myAvailablePostures
Parameter Name: available-postures Parameter Description: The list of postures in which this task is ...
Definition: aggregateIndirectFireControllerDescriptor.h:180
DtRwReal myHitFactor
Parameter Name: hit-factor Parameter Description: The effectiveness of the guidance capabilities of t...
Definition: aggregateIndirectFireControllerDescriptor.h:153

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)