summaryrefslogtreecommitdiffstats
path: root/libkdegames/kgame/kplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdegames/kgame/kplayer.cpp')
-rw-r--r--libkdegames/kgame/kplayer.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/libkdegames/kgame/kplayer.cpp b/libkdegames/kgame/kplayer.cpp
index fdde20d9..adc893ff 100644
--- a/libkdegames/kgame/kplayer.cpp
+++ b/libkdegames/kgame/kplayer.cpp
@@ -46,7 +46,7 @@ public:
mNetworkPlayer = 0;
}
- Q_UINT32 mId;
+ TQ_UINT32 mId;
bool mVirtual; // virtual player
int mPriority; // tag for replacement
@@ -55,8 +55,8 @@ public:
KGamePropertyHandler mProperties;
// Playerdata
- KGamePropertyQString mName;
- KGamePropertyQString mGroup;
+ KGamePropertyTQString mName;
+ KGamePropertyTQString mGroup;
};
KPlayer::KPlayer() : TQObject(0,0)
@@ -125,7 +125,7 @@ KPlayer::~KPlayer()
// kdDebug(11001) << k_funcinfo << " done" << endl;
}
-bool KPlayer::forwardMessage(TQDataStream &msg,int msgid,Q_UINT32 receiver,Q_UINT32 sender)
+bool KPlayer::forwardMessage(TQDataStream &msg,int msgid,TQ_UINT32 receiver,TQ_UINT32 sender)
{
if (!isActive())
{
@@ -139,7 +139,7 @@ bool KPlayer::forwardMessage(TQDataStream &msg,int msgid,Q_UINT32 receiver,Q_UIN
return game()->sendSystemMessage(msg,msgid,receiver,sender);
}
-bool KPlayer::forwardInput(TQDataStream &msg,bool transmit,Q_UINT32 sender)
+bool KPlayer::forwardInput(TQDataStream &msg,bool transmit,TQ_UINT32 sender)
{
if (!isActive())
{
@@ -173,7 +173,7 @@ bool KPlayer::forwardInput(TQDataStream &msg,bool transmit,Q_UINT32 sender)
}
}
-void KPlayer::setId(Q_UINT32 newid)
+void KPlayer::setId(TQ_UINT32 newid)
{
// Needs to be after the sendProcess
d->mId=newid;
@@ -192,7 +192,7 @@ void KPlayer::setName(const TQString& name)
const TQString& KPlayer::name() const
{ return d->mName.value(); }
-Q_UINT32 KPlayer::id() const
+TQ_UINT32 KPlayer::id() const
{ return d->mId; }
KGamePropertyHandler * KPlayer::dataHandler()
@@ -313,7 +313,7 @@ bool KPlayer::setTurn(bool b, bool exclusive)
bool KPlayer::load(TQDataStream &stream)
{
- Q_INT32 id,priority;
+ TQ_INT32 id,priority;
stream >> id >> priority;
setId(id);
setNetworkPriority(priority);
@@ -322,7 +322,7 @@ bool KPlayer::load(TQDataStream &stream)
//FIXME: maybe set all properties setEmitSignal(false) before?
d->mProperties.load(stream);
- Q_INT16 cookie;
+ TQ_INT16 cookie;
stream >> cookie;
if (cookie==KPLAYER_LOAD_COOKIE)
{
@@ -339,18 +339,18 @@ bool KPlayer::load(TQDataStream &stream)
bool KPlayer::save(TQDataStream &stream)
{
- stream << (Q_INT32)id() << (Q_INT32)networkPriority();
+ stream << (TQ_INT32)id() << (TQ_INT32)networkPriority();
d->mProperties.save(stream);
- stream << (Q_INT16)KPLAYER_LOAD_COOKIE;
+ stream << (TQ_INT16)KPLAYER_LOAD_COOKIE;
//emit signalSave(stream);
return true;
}
-void KPlayer::networkTransmission(TQDataStream &stream,int msgid,Q_UINT32 sender)
+void KPlayer::networkTransmission(TQDataStream &stream,int msgid,TQ_UINT32 sender)
{
//kdDebug(11001) << k_funcinfo ": msgid=" << msgid << " sender=" << sender << " we are=" << id() << endl;
// PlayerProperties processed
@@ -388,7 +388,7 @@ void KPlayer::networkTransmission(TQDataStream &stream,int msgid,Q_UINT32 sender
KGamePropertyBase* KPlayer::findProperty(int id) const
{
- return d->mProperties.find(id);
+ return d->mProperties.tqfind(id);
}
bool KPlayer::addProperty(KGamePropertyBase* data)