KDEGames
kgamemessage.cpp
53void KGameMessage::extractHeader(QDataStream &msg, quint32 &sender, quint32 &receiver, int &msgid)
static void extractPropertyHeader(QDataStream &msg, int &id)
Retrieves the property id from a property message header.
Definition kgamemessage.cpp:67
static bool isPlayer(quint32 id)
Checks whether a message receiver/sender is a player.
Definition kgamemessage.cpp:34
static void extractHeader(QDataStream &msg, quint32 &sender, quint32 &receiver, int &msgid)
Retrieves the information like cookie,sender,receiver,... from a message header.
Definition kgamemessage.cpp:53
static void extractPropertyCommand(QDataStream &msg, int &pid, int &cmd)
Retrieves the property id from a property message header.
Definition kgamemessage.cpp:81
static void createHeader(QDataStream &msg, quint32 sender, quint32 receiver, int msgid)
Creates a message header given cookie,sender,receiver,...
Definition kgamemessage.cpp:48
static int rawPlayerId(quint32 playerid)
Returns the raw playerid, that is, a id which does not contain the game number encoded in it.
Definition kgamemessage.cpp:24
static QString messageId2Text(int msgid)
This function takes a GameMessageIds as argument and returns a suitable string for it.
Definition kgamemessage.cpp:95
static bool isGame(quint32 id)
Checks whether the sender/receiver of a message is a game.
Definition kgamemessage.cpp:43
static void createPropertyHeader(QDataStream &msg, int id)
Creates a property header given the property id.
Definition kgamemessage.cpp:62
static void createPropertyCommand(QDataStream &msg, int cmdid, int pid, int cmd)
Creates a property header given the property id.
Definition kgamemessage.cpp:74
static quint32 rawGameId(quint32 playerid)
Returns the raw game id, that is, the game id the player belongs to.
Definition kgamemessage.cpp:29
static quint32 createPlayerId(int player, quint32 game)
Creates a fully qualified player ID which contains the original player id in the lower bits and the g...
Definition kgamemessage.cpp:16
QString i18n(const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.