![]() |
VR-Forces 4.1.1 Class Documentation
|
This record holds the state of the audio settings and entity to sound-file mappings. More...
Public Types | |
| typedef std::vector < DtEntitySoundMapRecord > | EntityMapRecordList |
| A vector of entity to sound-file maps. | |
| typedef std::vector < DtFireSoundMapRecord > | FireMapRecordList |
| A vector of weapon-fire to sound-file maps. | |
| typedef std::vector < DtDetonationSoundMapRecord > | DetonationMapRecordList |
| A vector of detonation to sound-file maps. | |
Public Member Functions | |
| DtAudioSettingsRecord () | |
| Default CTOR. | |
| DtAudioSettingsRecord (const DtAudioSettingsRecord &other) | |
| Copy CTOR. | |
| virtual | ~DtAudioSettingsRecord () |
| Virtual DTOR. | |
| DtAudioSettingsRecord & | operator= (DtAudioSettingsRecord rhs) |
| Assignment operator. | |
| virtual void | swap (DtAudioSettingsRecord &other) |
| No-fail, no-throw swap function, swaps this data with other data. | |
| virtual void | sort () |
| Sort the contained list of records. | |
| virtual void | clearMaps () |
| Clear the contained list of records. | |
| virtual void | setAudioEnabled (bool val) |
| Set the master audio enable/disable state. | |
| virtual bool | audioEnabled () const |
| Get the master audio enable/disable state. | |
| virtual void | setVolume (double val) |
| Set the master audio volume. | |
| virtual double | volume () const |
| Get the master audio volume. | |
| virtual void | setSoundRangeEnabled (bool val) |
| Set the master audio range enable/disable state. | |
| virtual bool | soundRangeEnabled () const |
| Get the master sound range enable/disable state. | |
| virtual void | setSoundRange (double val) |
| Set the master sound range. | |
| virtual double | soundRange () const |
| Get the master sound range. | |
| virtual unsigned int | entityMapSize () const |
| Get the number of entity to sound mapping records. | |
| virtual unsigned int | weaponFireMapSize () const |
| Get the number of weapon-fire to sound mapping records. | |
| virtual unsigned int | detonationMapSize () const |
| Get the number of detonation to sound mapping records. | |
| virtual EntityMapRecordList & | entityMap () |
| Get the list of entity sound maps. | |
| virtual EntityMapRecordList::iterator | entityMapFind (DtEntitySoundMapRecord &record) |
| Get the iterator of a sound map record in the entity map. | |
| virtual EntityMapRecordList::const_iterator | entityMapFind (const DtEntitySoundMapRecord &record) |
| Get the iterator of a sound map record in the entity map. | |
| virtual const DtEntitySoundMapRecord & | entityMapAt (unsigned int index) const |
| Get the sound map record at a specific index in the entity map. | |
| virtual unsigned int | entityMapIndex (const DtEntitySoundMapRecord &record) const |
| Get the index of a sound map record in the entity map. | |
| virtual FireMapRecordList & | weaponFireMap () |
| Get the list of weapon-fire sound maps. | |
| virtual FireMapRecordList::iterator | weaponFireMapFind (DtFireSoundMapRecord &record) |
| Get the iterator of a sound map record in the weapon-fire map. | |
| virtual FireMapRecordList::const_iterator | weaponFireMapFind (const DtFireSoundMapRecord &record) |
| Get the iterator of a sound map record in the weapon-fire map. | |
| virtual const DtEntitySoundMapRecord & | weaponFireMapAt (unsigned int index) const |
| Get the sound map record at a specific index in the weapon-fire map. | |
| virtual unsigned int | weaponFireMapIndex (const DtFireSoundMapRecord &record) const |
| Get the index of a sound map record in the weapon-fire map. | |
| virtual DetonationMapRecordList & | detonationMap () |
| Get the list of detonation sound maps. | |
| virtual DetonationMapRecordList::iterator | detonationMapFind (DtDetonationSoundMapRecord &record) |
| Get the iterator of a sound map record in the detonation map. | |
| virtual DetonationMapRecordList::const_iterator | detonationMapFind (const DtDetonationSoundMapRecord &record) |
| Get the iterator of a sound map record in the detonation map. | |
| virtual const DtEntitySoundMapRecord & | detonationMapAt (unsigned int index) const |
| Get the sound map record at a specific index in the detonation map. | |
| virtual unsigned int | detonationMapIndex (const DtDetonationSoundMapRecord &record) const |
| Get the index of a sound map record in the detonation map. | |
| virtual void | entityMapAdd (const DtEntitySoundMapRecord &record) |
| Add a new entity sound record to the map or change an existing record. | |
| virtual void | entityMapRemove (const DtEntitySoundMapRecord &record) |
| Remove an existing entity sound record from the map. | |
| virtual void | weaponFireMapAdd (const DtFireSoundMapRecord &record) |
| Add a new weapon-fire sound record to the map or change an existing record. | |
| virtual void | weaponFireMapRemove (const DtFireSoundMapRecord &record) |
| Remove an existing weapon-fire sound record from the map. | |
| virtual void | detonationMapAdd (const DtDetonationSoundMapRecord &record) |
| Add a new detonation sound record to the map or change an existing record. | |
| virtual void | detonationMapRemove (const DtDetonationSoundMapRecord &record) |
| Remove an existing detonation sound record from the map. | |
| virtual void | setFilename (const std::string &mtlFile) |
| Set the sound mapping MTL filename. | |
| virtual const std::string & | filename () const |
| Get the sound mapping MTL filename. | |
Protected Member Functions | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
| When the class Archive corresponds to an output archive, the & operator is defined similar to <<. | |
| template<typename MapType > | |
| MapType::iterator | mapFind (DtEntitySoundMapRecord &record, MapType &sndMap) const |
| General accessors for the sound map records. | |
| template<typename MapType > | |
| MapType::const_iterator | mapFind (const DtEntitySoundMapRecord &record, MapType &sndMap) const |
| General accessors for the sound map records. | |
| template<typename RecType , typename MapType > | |
| const RecType & | at (unsigned int index, MapType &sndMap) const |
| Get a reference to a record at a given index. | |
| template<typename RecType , typename MapType > | |
| unsigned int | index (const RecType &record, MapType &sndMap) const |
| Get the index of a record in the map. | |
| template<typename MapType > | |
| void | clearMap (MapType &sndMap) |
| General cleanup of the sound map records. | |
Protected Attributes | |
| int | myVolume |
| double | mySoundRange |
| bool | myAudioEnabled |
| bool | mySoundRangeEnabled |
| EntityMapRecordList | myEntitySounds |
| FireMapRecordList | myWeaponFireSounds |
| DetonationMapRecordList | myDetonationSounds |
| std::string | myFilename |
| Deprecated in record version 2. | |
| bool | myAudioOn |
| Deprecated in record version 2. | |
Friends | |
| class | boost::serialization::access |
This record holds the state of the audio settings and entity to sound-file mappings.
A vector of entity to sound-file maps.
A vector of weapon-fire to sound-file maps.
A vector of detonation to sound-file maps.
| makVrv::DtAudioSettingsRecord::DtAudioSettingsRecord | ( | ) |
Default CTOR.
| makVrv::DtAudioSettingsRecord::DtAudioSettingsRecord | ( | const DtAudioSettingsRecord & | other | ) |
Copy CTOR.
| [in] | other | is a DtAudioSettingsRecord to copy from. |
|
virtual |
Virtual DTOR.
| DtAudioSettingsRecord& makVrv::DtAudioSettingsRecord::operator= | ( | DtAudioSettingsRecord | rhs | ) |
Assignment operator.
| [in] | rhs | is a DtAudioSettingsRecord to copy from. |
|
virtual |
No-fail, no-throw swap function, swaps this data with other data.
| [in] | other | is a DtAudioSettingsRecord to swap data with. |
|
virtual |
Sort the contained list of records.
|
virtual |
Clear the contained list of records.
|
virtual |
Set the master audio enable/disable state.
| [in] | val | is the new state ( true=enabled, false=disabled ). |
|
virtual |
Get the master audio enable/disable state.
| true | if enabled. |
| false | otherwise. |
|
virtual |
Set the master audio volume.
| [in] | val | is the new volume ( 0.0 - 1.0 ). |
|
virtual |
Get the master audio volume.
|
virtual |
Set the master audio range enable/disable state.
| [in] | val | is the new state ( true=enabled, false=disabled ). |
|
virtual |
Get the master sound range enable/disable state.
| true | if enabled. |
| false | otherwise. |
|
virtual |
Set the master sound range.
| [in] | val | is the new maximum range ( in meters ). |
|
virtual |
Get the master sound range.
|
virtual |
Get the number of entity to sound mapping records.
|
virtual |
Get the number of weapon-fire to sound mapping records.
|
virtual |
Get the number of detonation to sound mapping records.
|
virtual |
Get the list of entity sound maps.
|
virtual |
Get the iterator of a sound map record in the entity map.
| [in] | record | is the record to look for in the map. |
|
virtual |
Get the iterator of a sound map record in the entity map.
| [in] | record | is the record to look for in the map. |
|
virtual |
Get the sound map record at a specific index in the entity map.
| [in] | index | is the index to the record in the map. |
| std::out_of_range | on bad index. |
|
virtual |
Get the index of a sound map record in the entity map.
| [in] | record | is the record to look for in the map. |
|
virtual |
Get the list of weapon-fire sound maps.
|
virtual |
Get the iterator of a sound map record in the weapon-fire map.
| [in] | record | is the record to look for in the map. |
|
virtual |
Get the iterator of a sound map record in the weapon-fire map.
| [in] | record | is the record to look for in the map. |
|
virtual |
Get the sound map record at a specific index in the weapon-fire map.
| [in] | index | is the index to the record in the map. |
| std::out_of_range | on bad index. |
|
virtual |
Get the index of a sound map record in the weapon-fire map.
| [in] | record | is the record to look for in the map. |
|
virtual |
Get the list of detonation sound maps.
|
virtual |
Get the iterator of a sound map record in the detonation map.
| [in] | record | is the record to look for in the map. |
|
virtual |
Get the iterator of a sound map record in the detonation map.
| [in] | record | is the record to look for in the map. |
|
virtual |
Get the sound map record at a specific index in the detonation map.
| [in] | index | is the index to the record in the map. |
| std::out_of_range | on bad index. |
|
virtual |
Get the index of a sound map record in the detonation map.
| [in] | record | is the record to look for in the map. |
|
virtual |
Add a new entity sound record to the map or change an existing record.
| [in] | record | is the record add or change. |
|
virtual |
Remove an existing entity sound record from the map.
| [in] | record | is the record to remove. |
|
virtual |
Add a new weapon-fire sound record to the map or change an existing record.
| [in] | record | is the record add or change. |
|
virtual |
Remove an existing weapon-fire sound record from the map.
| [in] | record | is the record to remove. |
|
virtual |
Add a new detonation sound record to the map or change an existing record.
| [in] | record | is the record add or change. |
|
virtual |
Remove an existing detonation sound record from the map.
| [in] | record | is the record to remove. |
|
virtual |
Set the sound mapping MTL filename.
| [in] | mtlFile | is the name of the MTL file to set. |
|
virtual |
Get the sound mapping MTL filename.
|
inlineprotected |
When the class Archive corresponds to an output archive, the & operator is defined similar to <<.
Likewise, when the class Archive is a type of input archive the & operator is defined similar to >>.
|
inlineprotected |
General accessors for the sound map records.
| [in] | record | is the record to look for. |
| [in] | sndMap | is the map to look through for the record. |
|
inlineprotected |
General accessors for the sound map records.
| [in] | record | is the record to look for. |
| [in] | sndMap | is the map to look through for the record. |
|
inlineprotected |
Get a reference to a record at a given index.
| [in] | index | is the index into the map for the record. |
| [in] | sndMap | is the map to look through for the record. |
| std::out_of_range | on bad index. |
|
inlineprotected |
Get the index of a record in the map.
| [in] | record | is the record to look up. |
| [in] | sndMap | is the map to look through for the index. |
References makVrv::vrvTacticalGraphicUtilities::distance().
|
inlineprotected |
General cleanup of the sound map records.
| [in] | sndMap | is the map to be cleared. |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Deprecated in record version 2.
|
protected |
Deprecated in record version 2.