summaryrefslogtreecommitdiffstats
path: root/libkdegames/kgame/kplayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkdegames/kgame/kplayer.h')
-rw-r--r--libkdegames/kgame/kplayer.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/libkdegames/kgame/kplayer.h b/libkdegames/kgame/kplayer.h
index 0e511ac3..a2d78929 100644
--- a/libkdegames/kgame/kplayer.h
+++ b/libkdegames/kgame/kplayer.h
@@ -21,9 +21,9 @@
#ifndef __KPLAYER_H_
#define __KPLAYER_H_
-#include <qstring.h>
-#include <qobject.h>
-#include <qptrlist.h>
+#include <tqstring.h>
+#include <tqobject.h>
+#include <tqptrlist.h>
#include "kgameproperty.h"
#include <kdemacros.h>
@@ -71,7 +71,7 @@ class KDE_EXPORT KPlayer : public QObject
Q_OBJECT
public:
- typedef QPtrList<KGameIO> KGameIOList;
+ typedef TQPtrList<KGameIO> KGameIOList;
// KPlayer(KGame *,KGameIO * input=0);
/**
@@ -259,24 +259,24 @@ public:
* A group the player belongs to. This
* Can be set arbitrary by you.
*/
- void setGroup(const QString& group);
+ void setGroup(const TQString& group);
/**
* Query the group the player belongs to.
*/
- virtual const QString& group() const;
+ virtual const TQString& group() const;
/**
* Sets the name of the player.
* This can be chosen arbitrary.
* @param name The player's name
*/
- void setName(const QString& name);
+ void setName(const TQString& name);
/**
* @return The name of the player.
*/
- virtual const QString& name() const;
+ virtual const TQString& name() const;
// set devices
@@ -333,12 +333,12 @@ public:
* KGame::playerInput() (if player=false, ie the message *was* sent through
* KGame::sendPlayerInput).
*/
- virtual bool forwardInput(QDataStream &msg,bool transmit=true, Q_UINT32 sender=0);
+ virtual bool forwardInput(TQDataStream &msg,bool transmit=true, Q_UINT32 sender=0);
/**
* Forwards Message to the game object..internal use only
*/
- virtual bool forwardMessage(QDataStream &msg,int msgid,Q_UINT32 receiver=0,Q_UINT32 sender=0);
+ virtual bool forwardMessage(TQDataStream &msg,int msgid,Q_UINT32 receiver=0,Q_UINT32 sender=0);
// Game logic
/**
@@ -372,7 +372,7 @@ public:
*
* @return true?
*/
- virtual bool load(QDataStream &stream);
+ virtual bool load(TQDataStream &stream);
/**
* Save a player to a file OR to network. See also load
@@ -381,7 +381,7 @@ public:
*
* @return true?
*/
- virtual bool save(QDataStream &stream);
+ virtual bool save(TQDataStream &stream);
/**
* Receives a message
@@ -390,7 +390,7 @@ public:
* @param stream The message itself
* @param sender
**/
- void networkTransmission(QDataStream &stream,int msgid,Q_UINT32 sender);
+ void networkTransmission(TQDataStream &stream,int msgid,Q_UINT32 sender);
/**
* Searches for a property of the player given its id.
@@ -430,7 +430,7 @@ signals:
* means probably a user message. Connecting to this signal
* allowed to process it.
*/
- void signalNetworkData(int msgid, const QByteArray& buffer, Q_UINT32 sender, KPlayer *me);
+ void signalNetworkData(int msgid, const TQByteArray& buffer, Q_UINT32 sender, KPlayer *me);
/**
* This signal is emmited if a player property changes its value and
@@ -444,7 +444,7 @@ protected slots:
/**
* Called by KGameProperty only! Internal function!
**/
- void sendProperty(int msgid, QDataStream& stream, bool* sent);
+ void sendProperty(int msgid, TQDataStream& stream, bool* sent);
/**
* Called by KGameProperty only! Internal function!
**/