Planeshift
Public Member Functions | Public Attributes

psMusicalSheetMessage Class Reference

Message used by to send a musical sheet. More...

#include <messages.h>

List of all members.

Public Member Functions

 PSF_DECLARE_MSG_FACTORY ()
 psMusicalSheetMessage (MsgEntry *me)
 Constructor from a MsgEntry.
 psMusicalSheetMessage (uint32_t client, uint32_t itemID, bool readOnly, bool play, const char *songTitle, const char *musicalSheet)
 Constructor.
virtual csString ToString (NetBase::AccessPointers *)
 Converts the message into human readable string.

Public Attributes

uint32_t itemID
csString musicalSheet
bool play
bool readOnly
csString songTitle

Detailed Description

Message used by to send a musical sheet.

Definition at line 5469 of file messages.h.


Constructor & Destructor Documentation

psMusicalSheetMessage::psMusicalSheetMessage ( uint32_t  client,
uint32_t  itemID,
bool  readOnly,
bool  play,
const char *  songTitle,
const char *  musicalSheet 
)

Constructor.

Parameters:
clientthe client's ID.
itemIDthe ID of the item containing the musical sheet.
readOnlytrue if the client cannot edit the score.
playtrue if the client asks to play the score.
songTitlethe song's title.
musicalSheetthe score.
psMusicalSheetMessage::psMusicalSheetMessage ( MsgEntry me)

Constructor from a MsgEntry.

Parameters:
methe message entry.

Member Function Documentation

psMusicalSheetMessage::PSF_DECLARE_MSG_FACTORY ( )
virtual csString psMusicalSheetMessage::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 5493 of file messages.h.


Member Data Documentation

Definition at line 5498 of file messages.h.

Definition at line 5502 of file messages.h.

Definition at line 5500 of file messages.h.

Definition at line 5499 of file messages.h.

Definition at line 5501 of file messages.h.


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