Planeshift
Public Member Functions | Public Attributes

psPlaySongMessage Class Reference

This message is used by the server to make clients play a song. More...

#include <messages.h>

List of all members.

Public Member Functions

 PSF_DECLARE_MSG_FACTORY ()
 psPlaySongMessage (MsgEntry *me)
 Constructor from a MsgEntry.
 psPlaySongMessage (uint32_t client, uint32_t songID, bool toPlayer, const char *instrName, uint32_t scoreSize, const char *musicalScore)
 Constructor.
virtual csString ToString (NetBase::AccessPointers *)
 Converts the message into human readable string.

Public Attributes

csString instrName
csString musicalScore
uint32_t songID
bool toPlayer

Detailed Description

This message is used by the server to make clients play a song.

Definition at line 5508 of file messages.h.


Constructor & Destructor Documentation

psPlaySongMessage::psPlaySongMessage ( uint32_t  client,
uint32_t  songID,
bool  toPlayer,
const char *  instrName,
uint32_t  scoreSize,
const char *  musicalScore 
)

Constructor.

Parameters:
clientthe client's ID.
songIDthe song's ID.
toPlayertrue if this message is directed to the player that plays the song.
instrNamethe name of the used instrument.
scoreSizethe length of the musical score
musicalScorethe musical sheet to play.
psPlaySongMessage::psPlaySongMessage ( MsgEntry me)

Constructor from a MsgEntry.

Parameters:
methe message entry.

Member Function Documentation

psPlaySongMessage::PSF_DECLARE_MSG_FACTORY ( )
virtual csString psPlaySongMessage::ToString ( NetBase::AccessPointers accessPointers) [inline, virtual]

Converts the message into human readable string.

Used when a message is Logged. Every message should implement a version of this function that print all data that was decoded when the message was initiated from a NetEntry. See psDRMessage::ToString for an example.

Parameters:
accessPointersA struct to a number of access pointers.
Returns:
Return a human readable string for the message.

Implements psMessageCracker.

Definition at line 5534 of file messages.h.


Member Data Documentation

Definition at line 5541 of file messages.h.

Definition at line 5542 of file messages.h.

Definition at line 5539 of file messages.h.

Definition at line 5540 of file messages.h.


The documentation for this class was generated from the following file: