Removed Game::setTestTound() and Game::removeTestRound().

They are still available via the PublicGame class for interfaces.
This commit is contained in:
Olivier Teulière 2012-02-18 20:22:10 +01:00
parent 24d601543a
commit 16a9a9b1a9
4 changed files with 8 additions and 24 deletions

View file

@ -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();
}
/*********************************************************
*********************************************************/

View file

@ -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;

View file

@ -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();
}
/***************************/

View file

@ -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();
/***************