|
Planeshift
|
This class keeps and manage the musical instruments. More...
#include <instrumentmngr.h>
Public Member Functions | |
| bool | Initialize (iObjectRegistry *objectReg) |
| Reads the instruments definitions. More... | |
| InstrumentManager () | |
| Constructor. More... | |
| bool | PlaySong (SoundControl *sndCtrl, csVector3 pos, csVector3 dir, SoundHandle *&songHandle, csRef< iDocument > musicalSheet, const char *instrName) |
| Play the song in the given musical sheet with the given instruments. More... | |
| ~InstrumentManager () | |
| Destructor. More... | |
This class keeps and manage the musical instruments.
Definition at line 44 of file instrumentmngr.h.
| InstrumentManager::InstrumentManager | ( | ) |
Constructor.
Creates an empty InstrumentManager.
| InstrumentManager::~InstrumentManager | ( | ) |
Destructor.
Destroys all instruments.
| bool InstrumentManager::Initialize | ( | iObjectRegistry * | objectReg | ) |
Reads the instruments definitions.
| objectReg | the object registry. |
| bool InstrumentManager::PlaySong | ( | SoundControl * | sndCtrl, |
| csVector3 | pos, | ||
| csVector3 | dir, | ||
| SoundHandle *& | songHandle, | ||
| csRef< iDocument > | musicalSheet, | ||
| const char * | instrName | ||
| ) |
Play the song in the given musical sheet with the given instruments.
| sndCtrl | the SoundControl for this song. |
| pos | the position of the player to play this song. |
| dir | the direction of this sound. |
| songHandle | an null SongHandle that will handle the song. |
| musicalSheet | the XML musical sheet to play. |
| instrName | the name of the instruments. |