RigsofRods
Soft-body Physics Simulation
|
#include <SoundScriptManager.h>
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 | setCamera (Ogre::Vector3 position, Ogre::Vector3 direction, Ogre::Vector3 up, Ogre::Vector3 velocity) |
void | setLoadingBaseSounds (bool value) |
bool | isDisabled () |
void | update (float dt_sec) |
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) |
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 | ( | ) |
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 356 of file SoundScriptManager.cpp.
|
private |
|
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 336 of file SoundScriptManager.cpp.
const StringVector & SoundScriptManager::getScriptPatterns | ( | void | ) | const |
Definition at line 331 of file SoundScriptManager.cpp.
|
inline |
|
inline |
bool SoundScriptManager::getTrigState | ( | const ActorPtr & | actor, |
int | trig, | ||
int | linkType = SL_DEFAULT , |
||
int | linkItemID = -1 |
||
) |
bool SoundScriptManager::getTrigState | ( | int | actor_id, |
int | trig, | ||
int | linkType = SL_DEFAULT , |
||
int | linkItemID = -1 |
||
) |
|
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 |
||
) |
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 | ||
) |
void SoundScriptManager::removeInstance | ( | const SoundScriptInstancePtr & | ssi | ) |
Definition at line 409 of file SoundScriptManager.cpp.
void SoundScriptManager::setCamera | ( | Ogre::Vector3 | position, |
Ogre::Vector3 | direction, | ||
Ogre::Vector3 | up, | ||
Ogre::Vector3 | velocity | ||
) |
Definition at line 324 of file SoundScriptManager.cpp.
void SoundScriptManager::setEnabled | ( | bool | state | ) |
|
inline |
|
private |
|
private |
void SoundScriptManager::trigKill | ( | const ActorPtr & | actor, |
int | trig, | ||
int | linkType = SL_DEFAULT , |
||
int | linkItemID = -1 |
||
) |
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 |
||
) |
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 |
||
) |
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 |
||
) |
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 |
||
) |
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_sec | ) |
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 369 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.