summaryrefslogtreecommitdiffstats
path: root/knights/logic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knights/logic.cpp')
-rw-r--r--knights/logic.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/knights/logic.cpp b/knights/logic.cpp
index 9d889d4..95baa78 100644
--- a/knights/logic.cpp
+++ b/knights/logic.cpp
@@ -210,7 +210,7 @@ bool logic::parseCAN( const bool Army )
else
{
chessMove.fromFile = 4;
- if( QString( chessMove.CAN ).lower() == "o-o" ) chessMove.toFile = 6;
+ if( TQString( chessMove.CAN ).lower() == "o-o" ) chessMove.toFile = 6;
else chessMove.toFile = 2;
if( Army == WHITE )
{
@@ -243,7 +243,7 @@ bool logic::parseSAN( void )
chessMove.Promote = Null;
chessMove.ManTaken = Null;
chessMove.NAG = 0;
- while( SANPtr < (signed)QString( chessMove.SAN ).length() )
+ while( SANPtr < (signed)TQString( chessMove.SAN ).length() )
{
/* Parse a character */
switch( chessMove.SAN[SANPtr] )
@@ -288,9 +288,9 @@ bool logic::parseSAN( void )
chessMove.toRank = 0;
else
chessMove.toRank = 7;
- if( QString( chessMove.SAN ).lower() == "o-o-o" )
+ if( TQString( chessMove.SAN ).lower() == "o-o-o" )
chessMove.toFile = 2;
- if( QString( chessMove.SAN ).lower() == "o-o" )
+ if( TQString( chessMove.SAN ).lower() == "o-o" )
chessMove.toFile = 6;
break;
/* Ignore some symbols... these fall through */
@@ -359,7 +359,7 @@ bool logic::parseSAN( void )
}
if( tmp == 64 )
{
-// kdWarning() << "logic::ParseSAN could not make a legal chessMove out of " << QString( chessMove.SAN ) << endl;
+// kdWarning() << "logic::ParseSAN could not make a legal chessMove out of " << TQString( chessMove.SAN ) << endl;
// kdWarning() << (int)Army << " " << (int)Type << " " << (int)chessMove.fromFile << " " << (int)chessMove.fromRank
// << " " << (int)chessMove.toFile << " " << (int)chessMove.toRank << endl;
return FALSE;
@@ -395,7 +395,7 @@ void logic::writeSAN( void )
bool SANambig(FALSE);
bool SANambig2(FALSE);
register char tmp, manPtr, toPtr, fromPtr;
- QString SAN;
+ TQString SAN;
/*
writeSAN calls HashLegal(), which writes on current[],
@@ -525,9 +525,9 @@ void logic::writeSAN( void )
// logic::board
//
///////////////////////////////////////
-QString logic::board( void )
+TQString logic::board( void )
{
- QString output;
+ TQString output;
register int tmp(0), tmpMan(0), cR(7), cF(0);
while( tmp != 64 )
@@ -611,9 +611,9 @@ QString logic::board( void )
// logic::setBoard
//
///////////////////////////////////////
-void logic::setBoard( const QString &board, const short ppf )
+void logic::setBoard( const TQString &board, const short ppf )
{
- QChar piece;
+ TQChar piece;
int tmp(0), tmp2(0), cR(7), cF(0);
clearBoard();
@@ -816,14 +816,14 @@ bool logic::isDraw( const bool Army )
// logic::setBoardFromFen
//
///////////////////////////////////////
-void logic::setBoardFromFen(const QString &fen)
+void logic::setBoardFromFen(const TQString &fen)
{
clearBoard();
int j = 0; //position in string
int r = 7; //rank
int f = 0; //file
int p = 63; //chessman number
- QChar c; //current letter
+ TQChar c; //current letter
for (j=0;j<120 && p>=0 ;j++) {
c = fen[j];
@@ -1064,7 +1064,7 @@ void logic::_HashLegal( const bool Recursion )
switch( chessman[ManPtr].Type )
{
- /* ROOK & QUEEN */
+ /* ROOK & TQUEEN */
case Rook:
case Queen:
/* Positive Rank Movement */