VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
powerRangeListDeterminant.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
14 
18 {
23 
24 public:
25 
28 
32  parentRegistry = NULL);
34  parentRegistry = NULL);
36 
40  DtReaderWriterRegistry* parentRegistry = NULL);
42  DtReaderWriterRegistry* parentRegistry = NULL);
44 
46  virtual bool operator==(const DtPowerRangeDeterminant& rhs) const;
47 
49  virtual ~DtPowerRangeListDeterminant();
50 
51  virtual DtPowerRangeListDeterminant* clone(const DtString& name,
52  DtReaderWriterRegistry* parentRegistry = NULL) const;
54  DtReaderWriterRegistry* parentRegistry = NULL) const;
55 
57  virtual double detonationPower(double rangeFromShooter, double rangeFromImpact) const;
58 
60  virtual double rangeFromShooterForPower(double power) const;
61 
63  virtual double rangeFromImpactForPower(double power) const;
64 
66  virtual double maximumRangeFromShooter() const;
67 
69  virtual double maximumRangeFromImpact() const;
70 
73  virtual void setRangeList(const DtPowerRangeList& rangeList);
74  virtual const DtPowerRangeList& rangeList() const;
75  virtual DtPowerRangeList& rangeList();
77 
80 
81 protected:
82 
84  virtual double powerFromRange(double range) const;
85 
87  virtual double rangeFromPower(double power) const;
88 
92  virtual void validateRangeFrom();
93 
96 
104 
106 };
107 
108 
virtual double maximumRangeFromShooter() const =0
Gets the maximum effective range from shooter of this detonation.
Definition: symbolString.h:20
static DtPowerRangeDeterminant * creator()
}
Definition: powerRangeListDeterminant.h:79
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
virtual void validateRangeFrom()=0
Validates the configured range-from setting and restores to a valid default if configuration is unsup...
DtPowerRangeList myRangeList
Parameter Name: range-list Parameter Description: List of range/power entries, in order of increasing...
Definition: powerRangeListDeterminant.h:103
Definition: prbStepFunction.h:24
virtual double maximumRangeFromImpact() const =0
Gets the maximum effective range from impact of this detonation.
A readable/writable object that indicates the power of a detonation of a given type, potentially at different ranges from the point of impact.
Definition: powerRangeListDeterminant.h:17
Definition: readerWriterRegistry.h:39
A readable/writable object that indicates the power of a detonation of a given type, potentially at different ranges from the point of impact.
Definition: powerRangeDeterminant.h:17
virtual double rangeFromShooterForPower(double power) const =0
Gets the maximum range from the shooter where the impact point would experience the specified power...
virtual bool operator==(const DtPowerRangeDeterminant &rhs) const
virtual DtPowerRangeDeterminant * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) const =0
const DtPowerRangeDeterminant & operator=(const DtPowerRangeDeterminant &orig)
virtual double detonationPower(double rangeFromShooter, double rangeFromImpact) const =0
Gets the detonation's power the given range from the shooter and range from the point of impact...
DtPrbStepFunction DtPowerRangeList
The probability range list is essentially the same structure as our power range list: a series of val...
Definition: powerRangeListDeterminant.h:22
virtual double rangeFromImpactForPower(double power) const =0
Gets the maximum range from the impact point where one would experience the specified power...

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)