Planeshift
|
This class takes care of played songs and players' ranking for musical instruments skills. More...
#include <serversongmngr.h>
Public Member Functions | |
void | HandlePlaySongMessage (MsgEntry *me, Client *client) |
Handles a play song request. | |
void | HandleStopSongMessage (MsgEntry *me, Client *client) |
Handles a stop song request. | |
bool | Initialize () |
void | OnStopSong (gemActor *charActor, bool isEnded) |
Stop the song and (contrary to StopSong) update the player's mode. | |
ServerSongManager () | |
Constructor. | |
void | StopSong (gemActor *charActor, bool skillRanking) |
Takes care of the skill ranking and of sending the stop song message to the player's proximity list. | |
~ServerSongManager () | |
Destructor. |
This class takes care of played songs and players' ranking for musical instruments skills.
Definition at line 80 of file serversongmngr.h.
ServerSongManager::ServerSongManager | ( | ) |
Constructor.
ServerSongManager::~ServerSongManager | ( | ) |
Destructor.
Handles a play song request.
me | the message from the client. |
client | the sender. |
Handles a stop song request.
me | the message from the client. |
client | the sender. |
bool ServerSongManager::Initialize | ( | ) |
void ServerSongManager::OnStopSong | ( | gemActor * | charActor, |
bool | isEnded | ||
) |
Stop the song and (contrary to StopSong) update the player's mode.
This is the function called when the player stop manually the song or when it ends.
charActor | the gemActor of the player. |
isEnded | true if the song has is ended, false otherwise. |
void ServerSongManager::StopSong | ( | gemActor * | charActor, |
bool | skillRanking | ||
) |
Takes care of the skill ranking and of sending the stop song message to the player's proximity list.
charActor | the player that has just stopped to play his instrument. |
skillRanking | true to make the player gain practice points, false otherwise. |