From 16a9a9b1a90b3978f58720d22f04ae36e1c1d116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Teuli=C3=A8re?= Date: Sat, 18 Feb 2012 20:22:10 +0100 Subject: [PATCH] Removed Game::setTestTound() and Game::removeTestRound(). They are still available via the PublicGame class for interfaces. --- game/game.cpp | 11 ----------- game/game.h | 9 --------- game/public_game.cpp | 4 ++-- game/public_game.h | 8 ++++++-- 4 files changed, 8 insertions(+), 24 deletions(-) diff --git a/game/game.cpp b/game/game.cpp index 15fc82b..3ad2ec4 100644 --- a/game/game.cpp +++ b/game/game.cpp @@ -434,17 +434,6 @@ PlayedRack Game::helperSetRackManual(bool iCheck, const wstring &iLetters) const } -void Game::setTestRound(const Round &iRound) -{ - m_board.testRound(iRound); -} - - -void Game::removeTestRound() -{ - m_board.removeTestRound(); -} - /********************************************************* *********************************************************/ diff --git a/game/game.h b/game/game.h index 08298cd..7f5b901 100644 --- a/game/game.h +++ b/game/game.h @@ -194,15 +194,6 @@ public: Round &oRound, bool checkRack = true) const; - /** - * Preview the given round on the board. - * It is up to the caller to provide a Round - * which makes sense for the current game. - */ - void setTestRound(const Round &iRound); - /** Remove the round set with setTestRound */ - void removeTestRound(); - private: /// Game characteristics GameParams m_params; diff --git a/game/public_game.cpp b/game/public_game.cpp index de7571f..2c79759 100644 --- a/game/public_game.cpp +++ b/game/public_game.cpp @@ -153,13 +153,13 @@ void PublicGame::shuffleRack() void PublicGame::setTestRound(const Round &iRound) { - m_game.setTestRound(iRound); + m_game.accessBoard().testRound(iRound); } void PublicGame::removeTestRound() { - m_game.removeTestRound(); + m_game.accessBoard().removeTestRound(); } /***************************/ diff --git a/game/public_game.h b/game/public_game.h index ab0a637..84b0789 100644 --- a/game/public_game.h +++ b/game/public_game.h @@ -159,9 +159,13 @@ public: /// Shuffle the rack of the current player void shuffleRack(); - /// Place a temporary word on the board for preview purposes + /** + * Place a temporary word on the board for preview purposes. + * It is up to the caller to provide a Round + * which makes sense for the current game. + */ void setTestRound(const Round &iRound); - /// Remove the temporary word + /** Remove the round set with setTestRound */ void removeTestRound(); /***************