VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ammoSelectTable.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2026 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <readerWriter/rwList.h>
13 #include <vl/hostStructs.h>
15 
16 class DtAmmoSelectEntry;
17 
23 {
24 public:
25 
26  //default constructor
28 
30  DtAmmoSelectTable( const DtString& name, DtReaderWriterRegistry* parentRegistry = nullptr );
31  DtAmmoSelectTable( const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = nullptr );
32 
34  DtAmmoSelectTable( const DtString& name, const DtAmmoSelectTable& orig,
35  DtReaderWriterRegistry* parentRegistry = nullptr );
36 
37  DtAmmoSelectTable( const DtSymbolString& name, const DtAmmoSelectTable& orig,
38  DtReaderWriterRegistry* parentRegistry = nullptr );
39 
40  const DtAmmoSelectTable& operator = ( const DtAmmoSelectTable& orig );
41 
43  virtual ~DtAmmoSelectTable() override;
44 
45  virtual DtAmmoSelectTable* clone( const DtString& name,
46  DtReaderWriterRegistry* parentRegistry = nullptr ) const;
47 
48  virtual DtAmmoSelectTable* clone( const DtSymbolString& name,
49  DtReaderWriterRegistry* parentRegistry = nullptr ) const;
50 
53  virtual void addAmmoSelectEntry( const DtAmmoSelectEntry& selectEntry );
54 
56  virtual const DtSimMunitionList& simMunitionList( const DtEntityType& targetType,
57  DtEntityType* bestMatch = nullptr ) const;
58 
59 protected:
60 
62  virtual DtlObjPtr getData( DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
63  const DtVariableBindingsList& variableBindings ) override;
64 
68  virtual DtListItem* lookupAmmoSelectEntry( const DtEntityType& targetType ) const;
69 
70  virtual void emptyList();
71  virtual void copyList( const DtAmmoSelectTable& orig );
72 
73  virtual void addAmmoSelectEntry( DtAmmoSelectEntry* selectEntry );
74 
75 protected:
76 
80 
81 };
virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) override=0
This method must be overridden by a subclass. Within this method, new instances of the DtReaderWriter...
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
A Readable, Writable version of DtList. This class cannot be used directly, but must be inherited to ...
Definition: rwList.h:26
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
DtAmmoSelectEntry.
Definition: ammoSelectEntry.h:24
Instances of DtSimMunitionList are lists of DtSimMunitions. Munitions are named (so resource names...
Definition: simMunitionList.h:26
Definition: readerWriterRegistry.h:39
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
DtAmmoSelectTable is a readable/writable list of DtAmmoSelectEntrys. It&#39;s sorted by the entity type i...
Definition: ammoSelectTable.h:22
const DtRwList & operator=(const DtRwList &orig)
Calls down to DtReaderWriter::operator=(). List elements are not copied.
DtSimMunitionList myDefaultList
This is returned if no entry is found for the specified target; it&#39;s an empty list (count() == 0)...
Definition: ammoSelectTable.h:79

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)