VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwCombatAdjustment.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <readerWriter/rwReal.h>
12 #include <readerWriter/rwString.h>
15 
17 {
18 public:
21 
24  parentRegistry = NULL);
25 
27  parentRegistry = NULL);
28 
30  DtRwCombatAdjustment(const DtString& name, const DtRwCombatAdjustment& orig,
31  DtReaderWriterRegistry* parentRegistry = NULL);
32 
34  DtReaderWriterRegistry* parentRegistry = NULL);
35 
38 
39  virtual ~DtRwCombatAdjustment();
40 
41  virtual DtRwCombatAdjustment* clone(const DtString& name,
42  DtReaderWriterRegistry* parentRegistry = NULL) const;
43 
44  virtual DtRwCombatAdjustment* clone(const DtSymbolString& name,
45  DtReaderWriterRegistry* parentRegistry = NULL) const;
46 
49  virtual DtString adjustmentName() const;
50  virtual void setAdjustmentName(const DtString& val);
52 
55  virtual double adjustment() const;
56  virtual void setAdjustment(double val);
58 
61  virtual DtString damageCategory() const;
62  virtual void setDamageCategory(const DtString& val);
64 
67  virtual DtString guidanceSystem() const;
68  virtual void setGuidanceSystem(const DtString& val);
70 
73  virtual DtString requiredResource() const;
74  virtual void setRequiredResource(const DtString& val);
76 
79  virtual double resourceAmount() const;
80  virtual void setResourceAmount(double val);
82 
85  virtual DtString calculationFunction() const;
86  virtual void setCalculationFunction(const DtString& val);
88 
90  bool operator==(const DtRwCombatAdjustment& rhs) const;
91  bool operator!=(const DtRwCombatAdjustment& rhs) const
92  {
93  return !(*this == rhs);
94  }
95 
99  virtual const char* readerWriterType() const;
100 
102  static const char* theXmlType();
103 
104  virtual const char* xmlType() const
105  {
106  return theXmlType();
107  }
108 
109 protected:
113 
118 
123 
129 
135 
140 
145 
151 
153 };
154 
156 
bool operator==(const DtReaderWriter &) const
Equivalence operator.
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is.
Definition: symbolString.h:20
bool operator!=(const DtRwCombatAdjustment &rhs) const
Definition: rwCombatAdjustment.h:91
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
DtRwString myRequiredResource
Parameter Name: required-resource Parameter Description: The resource required to use this adjustment...
Definition: rwCombatAdjustment.h:139
Definition: readerWriter.h:85
DtRwReal myAdjustment
Parameter Name: adjustment Parameter Description: The amount to adjust the combat value by...
Definition: rwCombatAdjustment.h:122
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
virtual const char * xmlType() const
Definition: rwCombatAdjustment.h:104
Definition: readerWriterRegistry.h:39
DtRwReal myResourceAmount
Parameter Name: resource-amount Parameter Description: The resource amount used when this adjustment ...
Definition: rwCombatAdjustment.h:144
Definition: rwCombatAdjustment.h:16
DtRwTemplatedListPtr< DtRwCombatAdjustment, true > DtRwCombatAdjustmentList
Definition: rwCombatAdjustment.h:155
DtRwString myCalculationFunction
Parameter Name: calculation-function Parameter Description: A Lua function that can be called to furt...
Definition: rwCombatAdjustment.h:150
DtRwString myGuidanceSystem
Parameter Name: guidance-system Parameter Description: Which category of munition guidance system thi...
Definition: rwCombatAdjustment.h:134
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwString myDamageCategory
Parameter Name: damage-category Parameter Description: Which category of damage this adjustment perta...
Definition: rwCombatAdjustment.h:128
DtRwString myAdjustmentName
Parameter Name: adjustment-name Parameter Description: The identifying name of this combat adjustment...
Definition: rwCombatAdjustment.h:117
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
static const char * theXmlType()
The type that is used when archiving to an XML stream.

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)