KDEGames
13 #include "libkdegamesprivate_export.h"
81 virtual int rtti()
const;
103 void setGame(
KGame *game);
119 void setAsyncInput(
bool a);
127 bool asyncInput()
const;
138 bool isVirtual()
const;
147 void setVirtual(
bool v);
156 bool isActive()
const;
163 void setActive(
bool v);
177 void setId(quint32 i);
196 void setUserId(
int i);
208 int networkPriority()
const;
226 void setNetworkPriority(
int b);
233 KPlayer *networkPlayer()
const;
238 void setNetworkPlayer(
KPlayer *p);
245 void setGroup(
const QString &group);
250 virtual const QString &group()
const;
257 void setName(
const QString &name);
262 virtual const QString &name()
const;
273 bool addGameIO(
KGameIO *input);
285 bool removeGameIO(
KGameIO *input =
nullptr,
bool deleteit =
true);
294 KGameIO *findRttiIO(
int rtti)
const;
303 bool hasRtti(
int rtti)
const;
318 virtual bool forwardInput(
QDataStream &msg,
bool transmit =
true, quint32 sender = 0);
323 virtual bool forwardMessage(
QDataStream &msg,
int msgid, quint32 receiver = 0, quint32 sender = 0);
342 bool setTurn(
bool b,
bool exclusive =
true);
374 void networkTransmission(
QDataStream &stream,
int msgid, quint32 sender);
414 void signalNetworkData(
int msgid,
const QByteArray &buffer, quint32 sender,
KPlayer *me);
428 void sendProperty(
int msgid,
QDataStream &stream,
bool *sent);
438 friend class KPlayerPrivate;
439 std::unique_ptr<KPlayerPrivate>
const d;
Base class for IO devices for games.
The main KDE game object.
Base class for a game player.
A collection class for KGameProperty objects.
Base class of KGameProperty.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:49:44 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.