VR-Forces 4.8 Class Documentation
 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 
16 
17 class DtAmmoSelectTable;
19 
21 {
22 public:
24  DtTargetingControlTable(const DtString& name,
25  DtReaderWriterRegistry* parentRegistry = NULL);
27  DtReaderWriterRegistry* parentRegistry = NULL);
28 
30  virtual ~DtTargetingControlTable();
31 
33  DtTargetingControlTable(const DtString& name,
34  const DtTargetingControlTable& orig,
35  DtReaderWriterRegistry* parentRegistry = NULL);
37  const DtTargetingControlTable& orig,
38  DtReaderWriterRegistry* parentRegistry = NULL);
40  DtReaderWriterRegistry* parentRegistry = NULL);
41 
44 
46  {
47  return myAmmunitionList;
48  }
49 
51  {
52  return myAmmunitionList;
53  }
54 
56  {
57  return myAmmunitionPrioritiesList;
58  }
59 
61  {
62  return myAmmunitionPrioritiesList;
63  }
64 
65  bool operator==(const DtTargetingControlTable&) const;
66  bool operator!=(const DtTargetingControlTable& rhs) const
67  {
68  return !(*this == rhs);
69  }
70 
71  virtual const char* readerWriterType() const;
72  static const char* theXmlType();
73 
74  virtual const char* xmlType() const
75  {
76  return theXmlType();
77  }
78 
80  virtual bool isValid() const;
81 
83  virtual bool hasTargetPriorities() const;
84 
86  virtual bool ammunitionCanBeUsedBy(const DtAmmunitionParamsEntry*) const;
87 
89  virtual void postGetSelf();
90 
92  virtual void setTo(DtAmmoSelectTable&) const;
93 
95  virtual DtSimResourceManager resourceManager() const;
96 
98  virtual void contributeResourcesTo(DtSimResourceManager&) const;
99 
100 protected:
101  //{@
105 
111 };
DtAmmunitionPrioritiesList & ammunitionPriorities()
Definition: targetingControlTable.h:60
DtAmmunitionList myAmmunitionList
Parameter Name: ammunition-list Parameter Description: List and amounts of ammunition available...
Definition: targetingControlTable.h:104
Definition: symbolString.h:20
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.
class DtSimResourceManager:
Definition: simResourceManager.h:38
Definition: readerWriterRegistry.h:39
Defines a criteria for choosing targets for a single weapon system.
Definition: targetSelectionCriteria.h:27
bool operator!=(const DtTargetingControlTable &rhs) const
Definition: targetingControlTable.h:66
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is.
virtual const char * xmlType() const
Definition: targetingControlTable.h:74
bool operator==(const DtTargetSelectionCriteria &) const
Equivalence operator.
DtAmmoSelectTable is a readable/writable list of DtAmmoSelectEntrys.
Definition: ammoSelectTable.h:27
DtTargetSelectionCriteria & operator=(const DtTargetSelectionCriteria &orig)
assignment
const DtAmmunitionPrioritiesList & ammunitionPriorities() const
Definition: targetingControlTable.h:55
DtAmmunitionPrioritiesList myAmmunitionPrioritiesList
Parameter Name: entity-target-priorities Parameter Description: List of ammunition to use for each ta...
Definition: targetingControlTable.h:109
DtAmmunitionParamsEntry; descriptor that represents members of a DtAmmunitionParams.
Definition: ammunitionParamsEntry.h:20
DtAmmunitionList & ammunition()
Definition: targetingControlTable.h:50
Readable-writable class holding all parameters to configure the DtTargetingControlTable.
Definition: ammunitionPrioritiesList.h:26
const DtAmmunitionList & ammunition() const
Definition: targetingControlTable.h:45
static const char * theXmlType()
The type that is used when archiving to an XML stream.
Definition: targetingControlTable.h:20

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)