Commit 633a121e authored by Inge Wallin's avatar Inge Wallin

Disable all kDebug()'s

parent 2a761ddc
......@@ -302,7 +302,7 @@ KReversiPos Engine::computeMove(const KReversiGame& game, bool competitive)
{
if( m_computingMove )
{
kDebug() << "I'm already computing move! Yours KReversi Engine.";
//kDebug() << "I'm already computing move! Yours KReversi Engine.";
return KReversiPos();
}
m_computingMove = true;
......
......@@ -63,10 +63,8 @@ void KReversiGame::makePlayerMove( int row, int col, bool demoMode )
if( !isMovePossible(move) )
{
kDebug() << "No move possible";
return;
}
//kDebug() << "Black (player) play ("<<move.row<<","<<move.col<<")";
makeMove( move );
m_undoStack.push( m_changedChips );
}
......@@ -87,7 +85,7 @@ void KReversiGame::startNextTurn(bool demoMode)
}
else // no comp move possible and not in demo mode
{
kDebug() << "Computer can't move!";
//kDebug() << "Computer can't move!";
m_curPlayer = m_playerColor;
emit computerCantMove();
}
......@@ -108,7 +106,7 @@ void KReversiGame::startNextTurn(bool demoMode)
}
else
{
kDebug() << "GAME OVER";
//kDebug() << "GAME OVER";
emit gameOver();
}
}
......@@ -124,7 +122,7 @@ void KReversiGame::makeComputerMove()
if( move.color != m_computerColor )
{
kDebug() << "Strange! makeComputerMove() just got not computer move!";
//kDebug() << "Strange! makeComputerMove() just got not computer move!";
return;
}
......@@ -173,7 +171,7 @@ int KReversiGame::undo()
m_curPlayer = m_playerColor;
kDebug() << "Undone" << movesUndone << "moves.";
//kDebug() << "Undone" << movesUndone << "moves.";
//kDebug() << "Current player changed to" << (m_curPlayer == White ? "White" : "Black" );
if (!m_undoStack.empty())
......
......@@ -19,10 +19,15 @@
#include "kreversiview.h"
KReversiView::KReversiView(KReversiGame* game, QWidget *parent) :
KgDeclarativeView(parent), m_delay(ANIMATION_SPEED_NORMAL), m_game(0),
m_demoMode(false), m_showLastMove(false), m_showLegalMoves(false),
m_showLabels(false), m_maxDelay(0)
KReversiView::KReversiView(KReversiGame* game, QWidget *parent)
: KgDeclarativeView(parent)
, m_delay(ANIMATION_SPEED_NORMAL)
, m_game(0)
, m_demoMode(false)
, m_showLastMove(false)
, m_showLegalMoves(false)
, m_showLabels(false)
, m_maxDelay(0)
{
m_delayTimer.setSingleShot(true);
connect(&m_delayTimer, SIGNAL(timeout()), this, SLOT(slotOnDelay()));
......@@ -68,7 +73,6 @@ void KReversiView::setGame(KReversiGame *game)
connect(m_game, SIGNAL(playerCantMove()), this, SLOT(slotPlayerCantMove()));
}
m_hint = KReversiPos();
m_demoMode = false;
......
......@@ -355,7 +355,7 @@ void KReversiMainWindow::slotHighscores()
void KReversiMainWindow::showEvent(QShowEvent*)
{
if (m_firstShow && m_startInDemoMode) {
kDebug() << "starting demo...";
//kDebug() << "starting demo...";
slotToggleDemoMode();
}
m_firstShow = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment