![]() |
VR-Forces 4.0.4 Class Documentation
|
DtDmgMunitionTable is the parameter that specifies the damage model for an entity. More...

Public Member Functions | |
| DtDmgMunitionTable () | |
| default constructor | |
| DtDmgMunitionTable (const DtString &writeName, DtReaderWriterRegistry *parentRegistry=0) | |
| constructor | |
| DtDmgMunitionTable (const DtString &writeName, const DtDmgMunitionTable &orig, DtReaderWriterRegistry *parentRegistry=0) | |
| copy constructor | |
| const DtDmgMunitionTable & | operator= (const DtDmgMunitionTable &orig) |
| assignment operator | |
| virtual | ~DtDmgMunitionTable () |
| virtual DtDmgMunitionTable * | clone (const DtString &writeName, DtReaderWriterRegistry *parentRegistry=0) const |
| virtual DtDmgMunitionEntry * | addMunitionEntry (const DtDmgMunitionEntry &munEntry) |
| Entry is added in ascending sorted order by munition. | |
| virtual DtDmgMunitionEntry * | addMunitionEntry (const DtEntityType &munEntry) |
| virtual bool | getProbabilities (const DtSimMunition &munition, const DtString &surface, DtReal angleOfIncidence, DtReal range, DtPrbRangeTableEntry *rangeEntry, bool isDirectDamage=true, DtSimMunition *bestMatch=0) const |
| Fills in the range entry passed based on the remaining arguments. | |
| virtual double | getMaximumDamageRadius (const DtSimMunition &munitionType) |
| Returns the maximum radius from the detonation at which the munition can do damage. | |
Protected Member Functions | |
| virtual DtlObjPtr | getData (DtlObjPtr args, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings) |
| Constructs a DtDmgMunitionEntry, reads the data from the mtl stream, and add it to the list. | |
| virtual void | emptyList () |
| virtual void | copyList (const DtDmgMunitionTable &orig) |
| virtual DtDmgMunitionEntry * | addMunitionEntry (DtDmgMunitionEntry *munEntry) |
| virtual DtListItem * | lookupMunitionEntry (const DtSimMunition &munition) const |
| virtual const char * | readerWriterType () const |
| Used to supply a string type that this reader writer type is. | |
DtDmgMunitionTable is the parameter that specifies the damage model for an entity.
An entity may choose not to have a damage model, so this class uses the setValueSpecified() capability of DtReaderWriter to support being an optional argument.
default constructor
| DtDmgMunitionTable::DtDmgMunitionTable | ( | const DtString & | writeName, |
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
constructor
| DtDmgMunitionTable::DtDmgMunitionTable | ( | const DtString & | writeName, |
| const DtDmgMunitionTable & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
copy constructor
| virtual DtDmgMunitionTable::~DtDmgMunitionTable | ( | ) | [virtual] |
| const DtDmgMunitionTable& DtDmgMunitionTable::operator= | ( | const DtDmgMunitionTable & | orig | ) |
assignment operator
| virtual DtDmgMunitionTable* DtDmgMunitionTable::clone | ( | const DtString & | writeName, |
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) | const [virtual] |
| virtual DtDmgMunitionEntry* DtDmgMunitionTable::addMunitionEntry | ( | const DtDmgMunitionEntry & | munEntry | ) | [virtual] |
Entry is added in ascending sorted order by munition.
| virtual DtDmgMunitionEntry* DtDmgMunitionTable::addMunitionEntry | ( | const DtEntityType & | munEntry | ) | [virtual] |
| virtual bool DtDmgMunitionTable::getProbabilities | ( | const DtSimMunition & | munition, |
| const DtString & | surface, | ||
| DtReal | angleOfIncidence, | ||
| DtReal | range, | ||
| DtPrbRangeTableEntry * | rangeEntry, | ||
| bool | isDirectDamage = true, |
||
| DtSimMunition * | bestMatch = 0 |
||
| ) | const [virtual] |
Fills in the range entry passed based on the remaining arguments.
false is returned if appropriate data can not be found. An attempt is made to make a best match on munition type in the same way entity parameters are looked up; -1 can be put into the table to 'match any'. direct damage bool used to determine if we are looking up direct damage or collateral damage
| virtual double DtDmgMunitionTable::getMaximumDamageRadius | ( | const DtSimMunition & | munitionType | ) | [virtual] |
Returns the maximum radius from the detonation at which the munition can do damage.
| virtual DtlObjPtr DtDmgMunitionTable::getData | ( | DtlObjPtr | args, |
| const DtFilename & | searchPath, | ||
| const DtVariableBindingsList & | variableBindings | ||
| ) | [protected, virtual] |
Constructs a DtDmgMunitionEntry, reads the data from the mtl stream, and add it to the list.
Implements DtRwList.
| virtual void DtDmgMunitionTable::emptyList | ( | ) | [protected, virtual] |
| virtual void DtDmgMunitionTable::copyList | ( | const DtDmgMunitionTable & | orig | ) | [protected, virtual] |
| virtual DtDmgMunitionEntry* DtDmgMunitionTable::addMunitionEntry | ( | DtDmgMunitionEntry * | munEntry | ) | [protected, virtual] |
| virtual DtListItem* DtDmgMunitionTable::lookupMunitionEntry | ( | const DtSimMunition & | munition | ) | const [protected, virtual] |
| virtual const char* DtDmgMunitionTable::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.