libkdegames/libkdegamesprivate/kgame
Go to the documentation of this file.
24 #include <QtCore/QObject>
25 #include <QtCore/QList>
27 #include "../libkdegamesprivate_export.h"
91 virtual int rtti()
const;
113 void setGame(
KGame *game);
129 void setAsyncInput(
bool a);
137 bool asyncInput()
const;
148 bool isVirtual()
const;
157 void setVirtual(
bool v);
166 bool isActive()
const;
173 void setActive(
bool v);
187 void setId(quint32 i);
206 void setUserId(
int i);
218 int networkPriority()
const;
236 void setNetworkPriority(
int b);
243 KPlayer *networkPlayer()
const;
248 void setNetworkPlayer(
KPlayer *p);
255 void setGroup(
const QString& group);
260 virtual const QString& group()
const;
284 bool addGameIO(
KGameIO *input);
296 bool removeGameIO(
KGameIO *input=0,
bool deleteit=
true);
305 KGameIO *findRttiIO(
int rtti)
const;
314 bool hasRtti(
int rtti)
const;
329 virtual bool forwardInput(
QDataStream &msg,
bool transmit=
true, quint32 sender=0);
334 virtual bool forwardMessage(
QDataStream &msg,
int msgid,quint32 receiver=0,quint32 sender=0);
353 bool setTurn(
bool b,
bool exclusive=
true);
386 void networkTransmission(
QDataStream &stream,
int msgid,quint32 sender);
426 void signalNetworkData(
int msgid,
const QByteArray& buffer, quint32 sender,
KPlayer *me);
440 void sendProperty(
int msgid,
QDataStream& stream,
bool* sent);
451 friend class KPlayerPrivate;
452 KPlayerPrivate *
const d;
A collection class for KGameProperty objects.
QList< KGameIO * > KGameIOList
const char * name() const
Base class for a game player.
void setName(const char *name)
Base class of KGameProperty.
The main KDE game object.
Base class for IO devices for games.
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.