VR-Forces 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() override;
43 
47  const DtString& rwName = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0) const override;
49  const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry) const override;
51 
54  virtual bool inheritValues(const DtVrfObjectParameters* benefactor) override;
55 
58  virtual DtReal maxRange() const;
59  virtual void setMaxRange(const DtReal range);
61 
64  virtual DtReal maxRangeAltitude() const;
65  virtual void setMaxRangeAltitude(const DtReal maxAcceleration);
67 
70  virtual DtReal cepRadius() const;
71  virtual void setCepRadius(const DtReal cepradius);
73 
76  virtual DtString type() const override;
77 
80  virtual void inheritValuesFromThisType(const DtBombParameters* benefactor);
81 
83  static DtVrfObjectParameters* creator(DtEnvironmentSP env, DtEnvValueSP* objectNode);
84 
85 protected:
86 
90 
97 
103 
116 
118 };
119 
Instances of DtVrfObjectParameters are the readable/writeable objects that contain the information ne...
Definition: vrfObjectParameters.h:64
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
Contains the DtMovingObjectParameters class declaration.
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
virtual DtString type() const override
Should return the type of object this is a parameter block for. Use the strings in vrfParamTypes...
Definition: readerWriterRegistry.h:39
DtRwReal myMaxRangeAltitude
Parameter Name: max-range-altitude Parameter Description: The deployment altitude at which a bomb can...
Definition: bombParameters.h:102
virtual bool inheritValues(const DtVrfObjectParameters *benefactor) override
virtual DtVrfObjectParameters * clone(const DtString &name=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=NULL) const override
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:96
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:115
DT_DLL_readerWriter std::shared_ptr< DtEnvironment > DtEnvironmentSP
Definition: readerWriter.h:30
Contains the set of readable/writeable parameters associated with an bomb type of entity...
Definition: bombParameters.h:22

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)