summaryrefslogtreecommitdiffstats
path: root/lskat/lskatproc/lskatproc.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /lskat/lskatproc/lskatproc.cpp
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz
tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lskat/lskatproc/lskatproc.cpp')
-rw-r--r--lskat/lskatproc/lskatproc.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/lskat/lskatproc/lskatproc.cpp b/lskat/lskatproc/lskatproc.cpp
index c1fdcfba..7f40bd69 100644
--- a/lskat/lskatproc/lskatproc.cpp
+++ b/lskat/lskatproc/lskatproc.cpp
@@ -379,17 +379,17 @@ short x,y;
SendDebug("Receiv Msg");
// end of process
- if (msg->HasKey(QCString("Terminate")))
+ if (msg->HasKey(TQCString("Terminate")))
{
Terminate();
}
// Init of process
- if (msg->HasKey(QCString("Init")))
+ if (msg->HasKey(TQCString("Init")))
{
// No init necessary
}
// Make a move
- if (msg->HasKey(QCString("Cards")))
+ if (msg->HasKey(TQCString("Cards")))
{
SendDebug("Process HasKey(Cards)");
// new game object
@@ -422,9 +422,9 @@ short x,y;
// report move
msg->RemoveAll();
- msg->AddData(QCString("Move"),game.currentplayer);
- msg->AddData(QCString("MoveX"),x);
- msg->AddData(QCString("MoveY"),y);
+ msg->AddData(TQCString("Move"),game.currentplayer);
+ msg->AddData(TQCString("MoveX"),x);
+ msg->AddData(TQCString("MoveY"),y);
//timee=time(0);
// Sleep a minimum amount to slow down moves
@@ -451,29 +451,29 @@ int lgame::ExtractGame(KEMessage *msg)
char *p;
int size;
- msg->GetData(QCString("Startplayer"),startplayer);
- msg->GetData(QCString("CurrentPlayer"),currentplayer);
- msg->GetData(QCString("Cards"),p,size);
- msg->GetData(QCString("Level"),level);
+ msg->GetData(TQCString("Startplayer"),startplayer);
+ msg->GetData(TQCString("CurrentPlayer"),currentplayer);
+ msg->GetData(TQCString("Cards"),p,size);
+ msg->GetData(TQCString("Level"),level);
level--; // start with level 0
for (i=0;i<NO_OF_CARDS;i++)
{
card[i]=((int *)p)[i];
}
- msg->GetData(QCString("Height"),p,size);
+ msg->GetData(TQCString("Height"),p,size);
for (i=0;i<NO_OF_TILES;i++)
{
cardheight[i]=((int *)p)[i];
}
- msg->GetData(QCString("Trump"),tmp);
+ msg->GetData(TQCString("Trump"),tmp);
trump=(CCOLOUR)tmp;
short mm;
- msg->GetData(QCString("CurrentMove"),mm);
+ msg->GetData(TQCString("CurrentMove"),mm);
curmove[1-currentplayer]=(int)mm;
curmove[currentplayer]=-1;
- msg->GetData(QCString("No"),movenumber);
- msg->GetData(QCString("Sc1"),score[0]);
- msg->GetData(QCString("Sc2"),score[1]);
+ msg->GetData(TQCString("No"),movenumber);
+ msg->GetData(TQCString("Sc1"),score[0]);
+ msg->GetData(TQCString("Sc2"),score[1]);
return 1;
}
@@ -586,7 +586,7 @@ int lskatproc::GetComputerMove(lgame game,short &x,short &y,int rek)
void lskatproc::SendDebug(const char *s)
{
KEMessage *msg=new KEMessage;
- msg->AddData(QCString("Debug"),s);
+ msg->AddData(TQCString("Debug"),s);
// msg->AddData("KLogSendMsg","debug.log");
// DEBUG
// SendMsg(msg);