VR-Forces 4.7 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 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)