9#ifndef __KGAMEMESSAGE_H_
10#define __KGAMEMESSAGE_H_
13#include "kdegamesprivate_export.h"
37 static quint32 createPlayerId(
int player, quint32 game);
47 static int rawPlayerId(quint32 playerid);
56 static quint32 rawGameId(quint32 playerid);
64 static bool isPlayer(quint32
id);
72 static bool isGame(quint32
id);
81 static void createHeader(
QDataStream &msg, quint32 sender, quint32 receiver,
int msgid);
88 static void extractHeader(
QDataStream &msg, quint32 &sender, quint32 &receiver,
int &msgid);
93 static void createPropertyHeader(
QDataStream &msg,
int id);
98 static void extractPropertyHeader(
QDataStream &msg,
int &
id);
103 static void createPropertyCommand(
QDataStream &msg,
int cmdid,
int pid,
int cmd);
108 static void extractPropertyCommand(
QDataStream &msg,
int &pid,
int &cmd);
113 static int version();
122 static QString messageId2Text(
int msgid);
133 IdSetupGameContinue = 2,
141 IdPlayerProperty = 20,
147 IdActivatePlayer = 32,
148 IdInactivatePlayer = 33,
157 IdProcessQuery = 220,
Namespace-like class for message-related static functions.
GameMessageIds
Message Ids used inside KGame.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:13:43 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.