Planeshift
|
This class connect the GUI and the server side of the instruments system to the sound plugin. More...
#include <clientsongmngr.h>
Public Member Functions | |
ClientSongManager () | |
Constructor. | |
virtual void | HandleMessage (MsgEntry *message) |
void | PlayMainPlayerSong (uint32_t itemID, const csString &musicalSheet) |
Makes the main player play the song in the given musical sheet and inform the server about it. | |
void | StopMainPlayerSong (bool notifyServer) |
Stops the song played by the main player. | |
void | Subscribe (iSongManagerListener *listener) |
Subscribe the given iSongManagerListener to this manager. | |
void | Unsubscribe (iSongManagerListener *listener) |
Unsubscribe the given iSongManagerListener. | |
void | Update () |
This method handle the ended songs. | |
~ClientSongManager () | |
Destructor. |
This class connect the GUI and the server side of the instruments system to the sound plugin.
It keeps and manage all the songs that are being played.
Definition at line 60 of file clientsongmngr.h.
ClientSongManager::ClientSongManager | ( | ) |
Constructor.
ClientSongManager::~ClientSongManager | ( | ) |
Destructor.
virtual void ClientSongManager::HandleMessage | ( | MsgEntry * | message | ) | [virtual] |
Implements psClientNetSubscriber.
void ClientSongManager::PlayMainPlayerSong | ( | uint32_t | itemID, |
const csString & | musicalSheet | ||
) |
Makes the main player play the song in the given musical sheet and inform the server about it.
itemID | the ID of the item that contains the musical sheet. |
musicalSheet | the musical sheet into XML format. |
void ClientSongManager::StopMainPlayerSong | ( | bool | notifyServer | ) |
Stops the song played by the main player.
notifyServer | true if the server must be notified about the stop. |
void ClientSongManager::Subscribe | ( | iSongManagerListener * | listener | ) |
Subscribe the given iSongManagerListener to this manager.
listener | the listener. |
void ClientSongManager::Unsubscribe | ( | iSongManagerListener * | listener | ) |
Unsubscribe the given iSongManagerListener.
listener | the listener. |
void ClientSongManager::Update | ( | ) |
This method handle the ended songs.