![]() |
VR-Forces 4.0.4 Class Documentation
|
Instances of DtSimMunitionList are lists of DtSimMunitions. More...

Public Member Functions | |
| DtSimMunitionList (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| constructor | |
| DtSimMunitionList (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtSimMunitionList (const DtString &name, const DtSimMunitionList &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| copy constructor | |
| DtSimMunitionList (const DtSymbolString &name, const DtSimMunitionList &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtSimMunitionList & | operator= (const DtSimMunitionList &orig) |
| Assignment operator; removes and deletes all entries on the left hand side - then clones all entries on the right side list, adding them to the left side list. | |
| virtual | ~DtSimMunitionList () |
| destructor | |
| virtual DtSimMunitionList * | clone (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) |
| virtual DtSimMunitionList * | clone (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL) |
| virtual void | addSimMunition (const DtSimMunition &munition) |
| virtual void | removeSimMunition (DtSimMunition *munition) |
| virtual DtSimMunition * | lookupSimMunition (const DtString &munitionName) const |
Protected Member Functions | |
| DtSimMunitionList () | |
| default constructor | |
| virtual void | emptyList () |
| Removes all munitions from the list, and destroys them. | |
| virtual void | copyList (const DtSimMunitionList &orig) |
| virtual DtlObjPtr | getData (DtlObjPtr args, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings) |
| Constructs a DtSimArtPartDescriptor, retrieves it from the mtl stream, and then adds it to the list. | |
| virtual void | addSimMunition (DtSimMunition *munition) |
| virtual const char * | readerWriterType () const |
| Used to supply a string type that this reader writer type is. | |
Protected Attributes | |
| DtHashlist | myMunitionIndex |
Instances of DtSimMunitionList are lists of DtSimMunitions.
Munitions are named (so resource names, for example, can be used) and a hash table for lookup by name is provided.
| DtSimMunitionList::DtSimMunitionList | ( | ) | [protected] |
default constructor
| DtSimMunitionList::DtSimMunitionList | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
constructor
| DtSimMunitionList::DtSimMunitionList | ( | const DtSymbolString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
| DtSimMunitionList::DtSimMunitionList | ( | const DtString & | name, |
| const DtSimMunitionList & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
copy constructor
| DtSimMunitionList::DtSimMunitionList | ( | const DtSymbolString & | name, |
| const DtSimMunitionList & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
| virtual DtSimMunitionList::~DtSimMunitionList | ( | ) | [virtual] |
destructor
| DtSimMunitionList& DtSimMunitionList::operator= | ( | const DtSimMunitionList & | orig | ) |
Assignment operator; removes and deletes all entries on the left hand side - then clones all entries on the right side list, adding them to the left side list.
| virtual DtSimMunitionList* DtSimMunitionList::clone | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) | [virtual] |
| virtual DtSimMunitionList* DtSimMunitionList::clone | ( | const DtSymbolString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) | [virtual] |
| virtual void DtSimMunitionList::addSimMunition | ( | const DtSimMunition & | munition | ) | [virtual] |
| virtual void DtSimMunitionList::removeSimMunition | ( | DtSimMunition * | munition | ) | [virtual] |
| virtual DtSimMunition* DtSimMunitionList::lookupSimMunition | ( | const DtString & | munitionName | ) | const [virtual] |
| virtual void DtSimMunitionList::emptyList | ( | ) | [protected, virtual] |
Removes all munitions from the list, and destroys them.
| virtual void DtSimMunitionList::copyList | ( | const DtSimMunitionList & | orig | ) | [protected, virtual] |
| virtual DtlObjPtr DtSimMunitionList::getData | ( | DtlObjPtr | args, |
| const DtFilename & | searchPath, | ||
| const DtVariableBindingsList & | variableBindings | ||
| ) | [protected, virtual] |
Constructs a DtSimArtPartDescriptor, retrieves it from the mtl stream, and then adds it to the list.
Implements DtRwList.
| virtual void DtSimMunitionList::addSimMunition | ( | DtSimMunition * | munition | ) | [protected, virtual] |
| virtual const char* DtSimMunitionList::readerWriterType | ( | ) | const [protected, virtual] |
Used to supply a string type that this reader writer type is.
This can be used in place of dynamic-casting. Also used by the opd editor to determine which type of control to create
Reimplemented from DtRwList.
DtHashlist DtSimMunitionList::myMunitionIndex [protected] |