VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
bombParameters.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <readerWriter/rwReal.h>
13 
14 class DtString;
16 
23 {
24 public:
26  DtBombParameters(const DtString& name = DtString::nullString(),
27  DtReaderWriterRegistry* parentRegistry = 0, DtEnvironmentSP env = DtEnvironmentSP(),
28  DtEnvValueSP* objectNode = NULL);
29 
30 protected:
33  const DtString& name = DtString::nullString(),
34  DtReaderWriterRegistry* parentRegistry = 0);
35 
36 public:
38  const DtBombParameters & operator=(const
39  DtBombParameters & orig);
40 
42  virtual ~DtBombParameters();
43 
47  const DtString& rwName = DtString::nullString(),
48  DtReaderWriterRegistry* parentRegistry = 0) const;
49  virtual DtVrfObjectParameters* clone(const DtSymbolString& name,
50  DtReaderWriterRegistry* parentRegistry) const;
52 
55  virtual bool inheritValues(const DtVrfObjectParameters * benefactor);
56 
59  virtual DtReal maxRange() const;
60  virtual void setMaxRange(const DtReal range);
62 
65  virtual DtReal maxRangeAltitude() const;
66  virtual void setMaxRangeAltitude(const DtReal maxAcceleration);
68 
71  virtual DtReal cepRadius() const;
72  virtual void setCepRadius(const DtReal cepradius);
74 
77  virtual DtString type() const;
78 
81  virtual void inheritValuesFromThisType(const DtBombParameters* benefactor);
82 
84  static DtVrfObjectParameters* creator(DtEnvironmentSP env, DtEnvValueSP* objectNode);
85 
86 protected:
87 
91 
98 
104 
117 
119 };
120 
Instances of DtVrfObjectParameters are the readable/writeable objects that contain the information ne...
Definition: vrfObjectParameters.h:63
Definition: symbolString.h:20
virtual bool inheritValues(const DtVrfObjectParameters *benefactor)
Contains the DtMovingObjectParameters class declaration.
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
DT_DLL_readerWriter DtBoost::shared_ptr< DtEnvironment > DtEnvironmentSP
Definition: readerWriter.h:30
Definition: readerWriterRegistry.h:39
DtRwReal myMaxRangeAltitude
Parameter Name: max-range-altitude Parameter Description: The deployment altitude at which a bomb can...
Definition: bombParameters.h:103
const DtMovingObjectParameters & operator=(const DtMovingObjectParameters &orig)
assignment operator
The moving-object-param parameter type is used for objects that are capable of movement, such as individual entities and aggregates. DtMovingObjectParameters; holds all of the configurable parameters for the DtVrfMovingObjectStateRepository class. Parameters include support points, maximum speed, maximum reverse speed, turning radius, maximum slope, ordered speed, maximum acceleration, maximum deceleration, and fuel efficiency. Aggregates are moving objects and have this parameter type. All of the platform-specific parameter types derive from this one. .
Definition: movingObjectParameters.h:32
DtRwReal myMaxRange
Parameter Name: max-range Parameter Description: The distance the bomb can travel when deployed at my...
Definition: bombParameters.h:97
virtual DtString type() const
Should return the type of object this is a parameter block for. Use the strings in vrfParamTypes...
static DtVrfObjectParameters * creator(DtEnvironmentSP env, DtEnvValueSP *objectNode)
virtual void inheritValuesFromThisType(const DtMovingObjectParameters *benefactor)
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwReal myCepRadius
Parameter Name: cep-radius Parameter Description: Circular Error Probable radius (CEP). This is the radius of a circle within which 50 % of the bomb will impact. For example, if a cep-radius of 100 meters is specified, then 50 % of bombs fired at a given target should impact within 100 meters of that target and the remaining 50 % of the bombs will impact at a distance greater that 100 meters from the target. This assumes that the bomb was potentially capable of hitting the desired target (that is, it was in range). Parameter Default Value: 13. Parameter Units: meters.
Definition: bombParameters.h:116
virtual DtVrfObjectParameters * clone(const DtString &name=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=NULL) const
Contains the set of readable/writeable parameters associated with an bomb type of entity...
Definition: bombParameters.h:22

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)