CMessage
Up

Purpose:
A game message sent internally between the Comm. manager and the Game manager or remotely between Comm. managers of game clients.
Methods:
CMessage (MessageType type, union MessageData& data, GameMessageType) - Compose a message from the given parameters.
CMessage (PBYTE, BYTE, GameMessageType) - Compose a message from a buffer and convert to local time.
void SetTime (DWORD) - Set message time (after translation to/from local).
DWORD GetTime () const - Get message time.
MessageType GetType () const - Get message type.
void SetType ( MessageType ) - Set message type.
DWORD GetBuffer (PBYTE) - Copy message to comm. buffer, return length.
DWORD EncodeSectorMines (PBYTE buf, int iSector, DWORD dwMinesFound, DWORD *pAllMinesInSector) - Encode the checksum message for mines.
DWORD DecodeSectorMines (PBYTE buf, DWORD dwBufferSize, int &iSector, DWORD *pAllMinesInSector) - Decode the checksum message for mines.
 

Back Home Up Next