summaryrefslogtreecommitdiffstats
path: root/kbackgammon/engines/offline
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit24c5cdc2737fe0044b11a12359606973eb93fc0b (patch)
treea670701ebff60c73e9f32aab588e9b3d395d74f9 /kbackgammon/engines/offline
parentf6000cffbc89072156cad7866d179fbd622df317 (diff)
downloadtdegames-24c5cdc2737fe0044b11a12359606973eb93fc0b.tar.gz
tdegames-24c5cdc2737fe0044b11a12359606973eb93fc0b.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbackgammon/engines/offline')
-rw-r--r--kbackgammon/engines/offline/kbgoffline.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kbackgammon/engines/offline/kbgoffline.cpp b/kbackgammon/engines/offline/kbgoffline.cpp
index 14197f54..8dd93a7c 100644
--- a/kbackgammon/engines/offline/kbgoffline.cpp
+++ b/kbackgammon/engines/offline/kbgoffline.cpp
@@ -484,7 +484,7 @@ void KBgEngineOffline::redo()
void KBgEngineOffline::handleMove(TQString *s)
{
int index = 0;
- TQString t = s->mid(index, s->tqfind(' ', index));
+ TQString t = s->mid(index, s->find(' ', index));
index += 1 + t.length();
int moves = t.toInt();
@@ -510,22 +510,22 @@ void KBgEngineOffline::handleMove(TQString *s)
*/
for (int i = 0; i < moves; i++) {
bool kick = false;
- t = s->mid(index, s->tqfind(' ', index) - index);
+ t = s->mid(index, s->find(' ', index) - index);
index += 1 + t.length();
char c = '-';
- if (t.tqcontains('+')) {
+ if (t.contains('+')) {
c = '+';
kick = true;
}
- TQString r = t.left(t.tqfind(c));
- if (r.tqcontains("bar")) {
+ TQString r = t.left(t.find(c));
+ if (r.contains("bar")) {
d->mGame[0].setBar(d->mRoll, abs(d->mGame[0].bar(d->mRoll)) - 1);
} else {
int from = r.toInt();
d->mGame[0].setBoard(from, d->mRoll, abs(d->mGame[0].board(from)) - 1);
}
t.remove(0, 1 + r.length());
- if (t.tqcontains("off")) {
+ if (t.contains("off")) {
d->mGame[0].setHome(d->mRoll, abs(d->mGame[0].home(d->mRoll)) + 1);
} else {
int to = t.toInt();