Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <SimpleScene.h>
Public Types | |
typedef SourceSet::iterator | SourceIterator |
Public Member Functions | |
SimpleScene (const std::string &name) throw () | |
virtual | ~SimpleScene () |
virtual void | add (SharedPtr< Source > source) throw (Exception) |
virtual void | remove (SharedPtr< Source > source) throw (NotFoundException) |
virtual Listener & | getListener () throw () |
virtual void | notifySourcePlaying (SharedPtr< Source > source, bool playing) throw (Exception) |
SourceIterator | getActiveSources () throw () |
SourceIterator | getActiveSourcesEnd () throw () |
![]() | |
virtual | ~Scene () |
const std::string & | getName () const throw () |
Protected Member Functions | |
void | attach (SimpleSource *source) throw () |
void | detach (SimpleSource *source) throw () |
![]() | |
Scene (const std::string &name) throw () | |
SimpleScene, basic implementation of the Scene interface
Definition at line 27 of file SimpleScene.h.
typedef SourceSet::iterator Audio::SimpleScene::SourceIterator |
Definition at line 36 of file SimpleScene.h.
Audio::SimpleScene::SimpleScene | ( | const std::string & | name) | ||
throw | ( | ||||
) |
Construct a new, empty scene
Definition at line 13 of file SimpleScene.cpp.
|
virtual |
Attach a source to this scene.
Implements Audio::Scene.
Definition at line 28 of file SimpleScene.cpp.
|
protected |
Definition at line 57 of file SimpleScene.cpp.
|
protected |
Definition at line 63 of file SimpleScene.cpp.
Referenced by ~SimpleScene().
SimpleScene::SourceIterator Audio::SimpleScene::getActiveSources | ( | ) | ||
throw | ( | |||
) |
Gets an iterator over active sources
Definition at line 70 of file SimpleScene.cpp.
Referenced by Audio::SceneManager::activationPhaseImpl().
SimpleScene::SourceIterator Audio::SimpleScene::getActiveSourcesEnd | ( | ) | ||
throw | ( | |||
) |
Gets the ending iterator of active sources
Definition at line 77 of file SimpleScene.cpp.
Referenced by Audio::SceneManager::activationPhaseImpl().
|
virtual |
Get the scene's listener
Implements Audio::Scene.
Definition at line 40 of file SimpleScene.cpp.
Referenced by Audio::SceneManager::activationPhaseImpl().
|
virtual |
Notify the scene of a source that starts or stops playing.
Definition at line 46 of file SimpleScene.cpp.
References Singleton< SceneManager >::getSingleton(), and Audio::SceneManager::notifySourcePlaying().
Referenced by Audio::SimpleSource::stopPlayingImpl().
|
virtual |
Detach a source from this scene
Implements Audio::Scene.
Definition at line 34 of file SimpleScene.cpp.