VR-Forces Developer's Guide
 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() override;
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 override;
100 
102  static const char* theXmlType();
103 
104  virtual const char* xmlType() const override {
105  return theXmlType();
106  }
107 
108 protected:
112 
117 
122 
128 
134 
139 
144 
150 
152 };
153 
155 
bool operator==(const DtReaderWriter &) const
Equivalence operator.
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
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:138
Definition: readerWriter.h:85
DtRwReal myAdjustment
Parameter Name: adjustment Parameter Description: The amount to adjust the combat value by...
Definition: rwCombatAdjustment.h:121
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
DtRwReal myResourceAmount
Parameter Name: resource-amount Parameter Description: The resource amount used when this adjustment ...
Definition: rwCombatAdjustment.h:143
Definition: rwCombatAdjustment.h:16
virtual const char * xmlType() const override
Definition: rwCombatAdjustment.h:104
DtRwTemplatedListPtr< DtRwCombatAdjustment, true > DtRwCombatAdjustmentList
Definition: rwCombatAdjustment.h:154
DtRwString myCalculationFunction
Parameter Name: calculation-function Parameter Description: A Lua function that can be called to furt...
Definition: rwCombatAdjustment.h:149
DtRwString myGuidanceSystem
Parameter Name: guidance-system Parameter Description: Which category of munition guidance system thi...
Definition: rwCombatAdjustment.h:133
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:127
DtRwString myAdjustmentName
Parameter Name: adjustment-name Parameter Description: The identifying name of this combat adjustment...
Definition: rwCombatAdjustment.h:116
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 Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)