![]() |
VR-Forces 4.0.4 Class Documentation
|
DtAmmoSelectTable is a readable/writable list of DtAmmoSelectEntrys. More...

Public Member Functions | |
| DtAmmoSelectTable () | |
| DtAmmoSelectTable (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| constructor with parameters to set up read/writability correctly | |
| DtAmmoSelectTable (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtAmmoSelectTable (const DtString &name, const DtAmmoSelectTable &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| copy constructor | |
| DtAmmoSelectTable (const DtSymbolString &name, const DtAmmoSelectTable &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| const DtAmmoSelectTable & | operator= (const DtAmmoSelectTable &orig) |
| virtual | ~DtAmmoSelectTable () |
| destructor | |
| virtual DtAmmoSelectTable * | clone (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) const |
| virtual DtAmmoSelectTable * | clone (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL) const |
| virtual void | addAmmoSelectEntry (const DtAmmoSelectEntry &selectEntry) |
| Adds a target priority entry. | |
| virtual const DtSimMunitionList & | simMunitionList (const DtEntityType &targetType, DtEntityType *bestMatch=NULL) const |
| Returns the list of DtSimMunitions appropriate for the target. | |
Protected Member Functions | |
| virtual DtlObjPtr | getData (DtlObjPtr args, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings) |
| Creates a DtAmmoSelectEntry, reads it, and adds it to the list. | |
| virtual DtListItem * | lookupAmmoSelectEntry (const DtEntityType &targetType) const |
| Lookup a DtAmmoSelectEntry, for a given target type. | |
| virtual void | emptyList () |
| virtual void | copyList (const DtAmmoSelectTable &orig) |
| virtual void | addAmmoSelectEntry (DtAmmoSelectEntry *selectEntry) |
Protected Attributes | |
| DtSimMunitionList | myDefaultList |
| This is returned if no entry is found for the specified target; it's an empty list (count() == 0). | |
DtAmmoSelectTable is a readable/writable list of DtAmmoSelectEntrys.
It's sorted by the entity type in the entry, and will return a list of DtSimMunitions based on the best match found for the entity type indicated.
| DtAmmoSelectTable::DtAmmoSelectTable | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
constructor with parameters to set up read/writability correctly
| DtAmmoSelectTable::DtAmmoSelectTable | ( | const DtSymbolString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
| DtAmmoSelectTable::DtAmmoSelectTable | ( | const DtString & | name, |
| const DtAmmoSelectTable & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
copy constructor
| DtAmmoSelectTable::DtAmmoSelectTable | ( | const DtSymbolString & | name, |
| const DtAmmoSelectTable & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
| virtual DtAmmoSelectTable::~DtAmmoSelectTable | ( | ) | [virtual] |
destructor
| const DtAmmoSelectTable& DtAmmoSelectTable::operator= | ( | const DtAmmoSelectTable & | orig | ) |
| virtual DtAmmoSelectTable* DtAmmoSelectTable::clone | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) | const [virtual] |
| virtual DtAmmoSelectTable* DtAmmoSelectTable::clone | ( | const DtSymbolString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) | const [virtual] |
| virtual void DtAmmoSelectTable::addAmmoSelectEntry | ( | const DtAmmoSelectEntry & | selectEntry | ) | [virtual] |
Adds a target priority entry.
List is kept in ascending order (by the entity type specified in the entry).
| virtual const DtSimMunitionList& DtAmmoSelectTable::simMunitionList | ( | const DtEntityType & | targetType, |
| DtEntityType * | bestMatch = NULL |
||
| ) | const [virtual] |
Returns the list of DtSimMunitions appropriate for the target.
| virtual DtlObjPtr DtAmmoSelectTable::getData | ( | DtlObjPtr | args, |
| const DtFilename & | searchPath, | ||
| const DtVariableBindingsList & | variableBindings | ||
| ) | [protected, virtual] |
Creates a DtAmmoSelectEntry, reads it, and adds it to the list.
Implements DtRwList.
| virtual DtListItem* DtAmmoSelectTable::lookupAmmoSelectEntry | ( | const DtEntityType & | targetType | ) | const [protected, virtual] |
Lookup a DtAmmoSelectEntry, for a given target type.
| targetType | DIS/RPR entity type enumeration for target |
| virtual void DtAmmoSelectTable::emptyList | ( | ) | [protected, virtual] |
| virtual void DtAmmoSelectTable::copyList | ( | const DtAmmoSelectTable & | orig | ) | [protected, virtual] |
| virtual void DtAmmoSelectTable::addAmmoSelectEntry | ( | DtAmmoSelectEntry * | selectEntry | ) | [protected, virtual] |
DtSimMunitionList DtAmmoSelectTable::myDefaultList [protected] |
This is returned if no entry is found for the specified target; it's an empty list (count() == 0).