VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
targetingControlTable.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 
15 
16 class DtAmmoSelectTable;
18 
20 {
21 public:
23  DtTargetingControlTable(const DtString& name,
24  DtReaderWriterRegistry* parentRegistry = NULL);
26  DtReaderWriterRegistry* parentRegistry = NULL);
27 
29  virtual ~DtTargetingControlTable() override;
30 
32  DtTargetingControlTable(const DtString& name,
33  const DtTargetingControlTable& orig,
34  DtReaderWriterRegistry* parentRegistry = NULL);
36  const DtTargetingControlTable& orig,
37  DtReaderWriterRegistry* parentRegistry = NULL);
39  DtReaderWriterRegistry* parentRegistry = NULL);
40 
43 
45  {
46  return myAmmunitionList;
47  }
48 
50  {
51  return myAmmunitionList;
52  }
53 
55  {
56  return myAmmunitionPrioritiesList;
57  }
58 
60  {
61  return myAmmunitionPrioritiesList;
62  }
63 
64  bool operator==(const DtTargetingControlTable&) const;
65  bool operator!=(const DtTargetingControlTable& rhs) const
66  {
67  return !(*this == rhs);
68  }
69 
70  virtual const char* readerWriterType() const override;
71  static const char* theXmlType();
72 
73  virtual const char* xmlType() const override {
74  return theXmlType();
75  }
76 
78  virtual bool isValid() const;
79 
81  virtual bool hasTargetPriorities() const;
82 
84  virtual bool ammunitionCanBeUsedBy(const DtAmmunitionParamsEntry*) const;
85 
87  virtual void postGetSelf() override;
88 
90  virtual void setTo(DtAmmoSelectTable&) const;
91 
92 protected:
93  //{@
97 
103 };
DtAmmunitionPrioritiesList & ammunitionPriorities()
Definition: targetingControlTable.h:59
DtAmmunitionList myAmmunitionList
Parameter Name: ammunition-list Parameter Description: List and amounts of ammunition available...
Definition: targetingControlTable.h:96
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
Readable-writable class holding all parameters to configure the DtTargetingControlTable.
Definition: ammunitionList.h:22
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
virtual void postGetSelf()
Called after either version of getSelf (mtl or environment). Default is no-op.
Definition: readerWriterRegistry.h:39
Defines a criteria for choosing targets for a single weapon system. This class stores all the informa...
Definition: targetSelectionCriteria.h:27
bool operator!=(const DtTargetingControlTable &rhs) const
Definition: targetingControlTable.h:65
virtual const char * xmlType() const override
Definition: targetingControlTable.h:73
bool operator==(const DtTargetSelectionCriteria &) const
Equivalence operator.
DtAmmoSelectTable is a readable/writable list of DtAmmoSelectEntrys. It's sorted by the entity type i...
Definition: ammoSelectTable.h:27
DtTargetSelectionCriteria & operator=(const DtTargetSelectionCriteria &orig)
assignment
const DtAmmunitionPrioritiesList & ammunitionPriorities() const
Definition: targetingControlTable.h:54
DtAmmunitionPrioritiesList myAmmunitionPrioritiesList
Parameter Name: entity-target-priorities Parameter Description: List of ammunition to use for each ta...
Definition: targetingControlTable.h:101
Definition: ammunitionParamsEntry.h:24
DtAmmunitionList & ammunition()
Definition: targetingControlTable.h:49
virtual const char * readerWriterType() const override
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
Readable-writable class holding all parameters to configure the DtTargetingControlTable.
Definition: ammunitionPrioritiesList.h:26
const DtAmmunitionList & ammunition() const
Definition: targetingControlTable.h:44
static const char * theXmlType()
The type that is used when archiving to an XML stream.
Definition: targetingControlTable.h:19

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)