libkdegames/libkdegamesprivate/kgame
Go to the documentation of this file.
21 #ifndef __KGAMEMESSAGE_H_
22 #define __KGAMEMESSAGE_H_
24 #include <QtCore/QDataStream>
25 #include "../libkdegamesprivate_export.h"
45 static quint32 createPlayerId(
int player, quint32 game);
55 static int rawPlayerId(quint32 playerid);
64 static quint32 rawGameId(quint32 playerid);
72 static bool isPlayer(quint32
id);
80 static bool isGame(quint32
id);
89 static void createHeader(
QDataStream &msg, quint32 sender, quint32 receiver,
int msgid);
96 static void extractHeader(
QDataStream &msg,quint32 &sender, quint32 &receiver,
int &msgid);
101 static void createPropertyHeader(
QDataStream &msg,
int id);
106 static void extractPropertyHeader(
QDataStream &msg,
int &
id);
111 static void createPropertyCommand(
QDataStream &msg,
int cmdid,
int pid,
int cmd);
116 static void extractPropertyCommand(
QDataStream &msg,
int &pid,
int &cmd);
121 static int version();
130 static QString messageId2Text(
int msgid);
142 IdSetupGameContinue=2,
157 IdInactivatePlayer=33,
GameMessageIds
Message Ids used inside KGame.
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
KDE's Doxygen guidelines are available online.