libkdegames/libkdegamesprivate/kgame
kgamemessage.cpp
Go to the documentation of this file.
Definition: kgamemessage.h:166
Definition: kgamemessage.h:158
Definition: kgamemessage.h:150
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:27
Definition: kgamemessage.h:143
Definition: kgamemessage.h:169
Definition: kgamemessage.h:167
static bool isPlayer(quint32 id)
Checks whether a message receiver/sender is a player.
Definition: kgamemessage.cpp:45
Definition: kgamemessage.h:155
Definition: kgamemessage.h:146
Definition: kgamemessage.h:147
static void createPropertyHeader(QDataStream &msg, int id)
Creates a property header given the property id.
Definition: kgamemessage.cpp:72
static void extractPropertyCommand(QDataStream &msg, int &pid, int &cmd)
Retrieves the property id from a property message header.
Definition: kgamemessage.cpp:91
Definition: kgamemessage.h:163
static void createHeader(QDataStream &msg, quint32 sender, quint32 receiver, int msgid)
Creates a message header given cookie,sender,receiver,...
Definition: kgamemessage.cpp:60
Definition: kgamemessage.h:162
Definition: kgamemessage.h:145
static bool isGame(quint32 id)
Checks whether the sender/receiver of a message is a game.
Definition: kgamemessage.cpp:54
Definition: kgamemessage.h:156
Definition: kgamemessage.h:154
static QString messageId2Text(int msgid)
This function takes a GameMessageIds as argument and returns a suitable string for it...
Definition: kgamemessage.cpp:105
Definition: kgamemessage.h:141
Definition: kgamemessage.h:161
Definition: kgamemessage.h:151
static quint32 rawGameId(quint32 playerid)
Returns the raw game id, that is, the game id the player belongs to.
Definition: kgamemessage.cpp:40
Definition: kgamemessage.h:144
static void createPropertyCommand(QDataStream &msg, int cmdid, int pid, int cmd)
Creates a property header given the property id.
Definition: kgamemessage.cpp:84
static void extractPropertyHeader(QDataStream &msg, int &id)
Retrieves the property id from a property message header.
Definition: kgamemessage.cpp:77
static void extractHeader(QDataStream &msg, quint32 &sender, quint32 &receiver, int &msgid)
Retrieves the information like cookie,sender,receiver,...
Definition: kgamemessage.cpp:65
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:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.