![]() |
RigsofRods
2023.09
Soft-body Physics Simulation
|
#include <SoundScriptManager.h>
Inheritance diagram for RoR::SoundScriptManager:Public Member Functions | |
| SoundScriptManager () | |
| ~SoundScriptManager () | |
| const Ogre::StringVector & | getScriptPatterns (void) const |
| void | parseScript (Ogre::DataStreamPtr &stream, const Ogre::String &groupName) |
| Ogre::Real | getLoadingOrder (void) const |
| SoundScriptInstancePtr | createInstance (Ogre::String templatename, int actor_id, int soundLinkType=SL_DEFAULT, int soundLinkItemId=-1) |
| void | removeInstance (const SoundScriptInstancePtr &ssi) |
| std::vector< SoundScriptInstancePtr > & | getAllInstances () |
| SoundScriptTemplatePtr & | getTemplate (Ogre::String name) |
| std::map< Ogre::String, SoundScriptTemplatePtr > & | getAllTemplates () |
| void | trigOnce (int actor_id, int trig, int linkType=SL_DEFAULT, int linkItemID=-1) |
| void | trigOnce (const ActorPtr &actor, int trig, int linkType=SL_DEFAULT, int linkItemID=-1) |
| void | trigStart (int actor_id, int trig, int linkType=SL_DEFAULT, int linkItemID=-1) |
| void | trigStart (const ActorPtr &actor, int trig, int linkType=SL_DEFAULT, int linkItemID=-1) |
| void | trigStop (int actor_id, int trig, int linkType=SL_DEFAULT, int linkItemID=-1) |
| void | trigStop (const ActorPtr &actor, int trig, int linkType=SL_DEFAULT, int linkItemID=-1) |
| void | trigToggle (int actor_id, int trig, int linkType=SL_DEFAULT, int linkItemID=-1) |
| void | trigToggle (const ActorPtr &actor, int trig, int linkType=SL_DEFAULT, int linkItemID=-1) |
| void | trigKill (int actor_id, int trig, int linkType=SL_DEFAULT, int linkItemID=-1) |
| void | trigKill (const ActorPtr &actor, int trig, int linkType=SL_DEFAULT, int linkItemID=-1) |
| bool | getTrigState (int actor_id, int trig, int linkType=SL_DEFAULT, int linkItemID=-1) |
| bool | getTrigState (const ActorPtr &actor, int trig, int linkType=SL_DEFAULT, int linkItemID=-1) |
| void | modulate (int actor_id, int mod, float value, int linkType=SL_DEFAULT, int linkItemID=-1) |
| void | modulate (const ActorPtr &actor, int mod, float value, int linkType=SL_DEFAULT, int linkItemID=-1) |
| void | setEnabled (bool state) |
| void | SetListener (Ogre::Vector3 position, Ogre::Vector3 direction, Ogre::Vector3 up, Ogre::Vector3 velocity) |
| void | setLoadingBaseSounds (bool value) |
| bool | isDisabled () |
| void | update (float dt) |
| SoundManager * | getSoundManager () |
Private Member Functions | |
| SoundScriptTemplatePtr | createTemplate (Ogre::String name, Ogre::String groupname, Ogre::String filename) |
| void | skipToNextCloseBrace (Ogre::DataStreamPtr &chunk) |
| void | skipToNextOpenBrace (Ogre::DataStreamPtr &chunk) |
| void | SetListenerEnvironment (Ogre::Vector3 position) |
Private Attributes | |
| bool | disabled |
| bool | loading_base |
| float | max_distance |
| float | reference_distance |
| float | rolloff_factor |
| int | instance_counter |
| Ogre::StringVector | script_patterns |
| std::map< Ogre::String, SoundScriptTemplatePtr > | templates |
| std::vector< SoundScriptInstancePtr > | instances |
| std::array< int, SS_MAX_TRIG > | free_trigs |
| std::array< SoundScriptInstancePtr, SS_MAX_TRIG *MAX_INSTANCES_PER_GROUP > | trigs |
| std::array< int, SS_MAX_MOD > | free_pitches |
| std::array< SoundScriptInstancePtr, SS_MAX_MOD *MAX_INSTANCES_PER_GROUP > | pitches |
| std::array< int, SS_MAX_MOD > | free_gains |
| std::array< SoundScriptInstancePtr, SS_MAX_MOD *MAX_INSTANCES_PER_GROUP > | gains |
| std::map< int, std::map< int, std::map< int, std::map< int, bool > > > > | state_map |
| SoundManager * | sound_manager |
Definition at line 293 of file SoundScriptManager.h.
| SoundScriptManager::SoundScriptManager | ( | ) |
Definition at line 41 of file SoundScriptManager.cpp.
| SoundScriptManager::~SoundScriptManager | ( | ) |
Definition at line 97 of file SoundScriptManager.cpp.
| SoundScriptInstancePtr SoundScriptManager::createInstance | ( | Ogre::String | templatename, |
| int | actor_id, | ||
| int | soundLinkType = SL_DEFAULT, |
||
| int | soundLinkItemId = -1 |
||
| ) |
Definition at line 360 of file SoundScriptManager.cpp.
|
private |
Definition at line 346 of file SoundScriptManager.cpp.
|
inline |
Definition at line 307 of file SoundScriptManager.h.
|
inline |
Definition at line 309 of file SoundScriptManager.h.
| Real SoundScriptManager::getLoadingOrder | ( | void | ) | const |
Definition at line 340 of file SoundScriptManager.cpp.
| const StringVector & SoundScriptManager::getScriptPatterns | ( | void | ) | const |
Definition at line 335 of file SoundScriptManager.cpp.
|
inline |
Definition at line 336 of file SoundScriptManager.h.
|
inline |
Definition at line 308 of file SoundScriptManager.h.
| bool SoundScriptManager::getTrigState | ( | const ActorPtr & | actor, |
| int | trig, | ||
| int | linkType = SL_DEFAULT, |
||
| int | linkItemID = -1 |
||
| ) |
Definition at line 244 of file SoundScriptManager.cpp.
| bool SoundScriptManager::getTrigState | ( | int | actor_id, |
| int | trig, | ||
| int | linkType = SL_DEFAULT, |
||
| int | linkItemID = -1 |
||
| ) |
Definition at line 255 of file SoundScriptManager.cpp.
|
inline |
Definition at line 332 of file SoundScriptManager.h.
| void SoundScriptManager::modulate | ( | const ActorPtr & | actor, |
| int | mod, | ||
| float | value, | ||
| int | linkType = SL_DEFAULT, |
||
| int | linkItemID = -1 |
||
| ) |
Definition at line 263 of file SoundScriptManager.cpp.
| void SoundScriptManager::modulate | ( | int | actor_id, |
| int | mod, | ||
| float | value, | ||
| int | linkType = SL_DEFAULT, |
||
| int | linkItemID = -1 |
||
| ) |
Definition at line 274 of file SoundScriptManager.cpp.
| void SoundScriptManager::parseScript | ( | Ogre::DataStreamPtr & | stream, |
| const Ogre::String & | groupName | ||
| ) |
Definition at line 478 of file SoundScriptManager.cpp.
| void SoundScriptManager::removeInstance | ( | const SoundScriptInstancePtr & | ssi | ) |
Definition at line 413 of file SoundScriptManager.cpp.
| void SoundScriptManager::setEnabled | ( | bool | state | ) |
Definition at line 553 of file SoundScriptManager.cpp.
| void SoundScriptManager::SetListener | ( | Ogre::Vector3 | position, |
| Ogre::Vector3 | direction, | ||
| Ogre::Vector3 | up, | ||
| Ogre::Vector3 | velocity | ||
| ) |
Definition at line 328 of file SoundScriptManager.cpp.
|
private |
|
inline |
Definition at line 330 of file SoundScriptManager.h.
|
private |
Definition at line 533 of file SoundScriptManager.cpp.
|
private |
Definition at line 543 of file SoundScriptManager.cpp.
| void SoundScriptManager::trigKill | ( | const ActorPtr & | actor, |
| int | trig, | ||
| int | linkType = SL_DEFAULT, |
||
| int | linkItemID = -1 |
||
| ) |
Definition at line 192 of file SoundScriptManager.cpp.
| void SoundScriptManager::trigKill | ( | int | actor_id, |
| int | trig, | ||
| int | linkType = SL_DEFAULT, |
||
| int | linkItemID = -1 |
||
| ) |
Definition at line 203 of file SoundScriptManager.cpp.
| void SoundScriptManager::trigOnce | ( | const ActorPtr & | actor, |
| int | trig, | ||
| int | linkType = SL_DEFAULT, |
||
| int | linkItemID = -1 |
||
| ) |
Definition at line 103 of file SoundScriptManager.cpp.
| void SoundScriptManager::trigOnce | ( | int | actor_id, |
| int | trig, | ||
| int | linkType = SL_DEFAULT, |
||
| int | linkItemID = -1 |
||
| ) |
Definition at line 114 of file SoundScriptManager.cpp.
| void SoundScriptManager::trigStart | ( | const ActorPtr & | actor, |
| int | trig, | ||
| int | linkType = SL_DEFAULT, |
||
| int | linkItemID = -1 |
||
| ) |
Definition at line 131 of file SoundScriptManager.cpp.
| void SoundScriptManager::trigStart | ( | int | actor_id, |
| int | trig, | ||
| int | linkType = SL_DEFAULT, |
||
| int | linkItemID = -1 |
||
| ) |
Definition at line 142 of file SoundScriptManager.cpp.
| void SoundScriptManager::trigStop | ( | const ActorPtr & | actor, |
| int | trig, | ||
| int | linkType = SL_DEFAULT, |
||
| int | linkItemID = -1 |
||
| ) |
Definition at line 162 of file SoundScriptManager.cpp.
| void SoundScriptManager::trigStop | ( | int | actor_id, |
| int | trig, | ||
| int | linkType = SL_DEFAULT, |
||
| int | linkItemID = -1 |
||
| ) |
Definition at line 173 of file SoundScriptManager.cpp.
| void SoundScriptManager::trigToggle | ( | const ActorPtr & | actor, |
| int | trig, | ||
| int | linkType = SL_DEFAULT, |
||
| int | linkItemID = -1 |
||
| ) |
Definition at line 222 of file SoundScriptManager.cpp.
| void SoundScriptManager::trigToggle | ( | int | actor_id, |
| int | trig, | ||
| int | linkType = SL_DEFAULT, |
||
| int | linkItemID = -1 |
||
| ) |
Definition at line 233 of file SoundScriptManager.cpp.
| void SoundScriptManager::update | ( | float | dt | ) |
Definition at line 308 of file SoundScriptManager.cpp.
|
private |
Definition at line 344 of file SoundScriptManager.h.
|
private |
Definition at line 362 of file SoundScriptManager.h.
|
private |
Definition at line 359 of file SoundScriptManager.h.
|
private |
Definition at line 356 of file SoundScriptManager.h.
|
private |
Definition at line 363 of file SoundScriptManager.h.
|
private |
Definition at line 349 of file SoundScriptManager.h.
|
private |
Definition at line 353 of file SoundScriptManager.h.
|
private |
Definition at line 345 of file SoundScriptManager.h.
|
private |
Definition at line 346 of file SoundScriptManager.h.
|
private |
Definition at line 360 of file SoundScriptManager.h.
|
private |
Definition at line 347 of file SoundScriptManager.h.
|
private |
Definition at line 348 of file SoundScriptManager.h.
|
private |
Definition at line 350 of file SoundScriptManager.h.
|
private |
Definition at line 371 of file SoundScriptManager.h.
|
private |
Definition at line 367 of file SoundScriptManager.h.
|
private |
Definition at line 352 of file SoundScriptManager.h.
|
private |
Definition at line 357 of file SoundScriptManager.h.
1.8.17