mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-18 10:26:15 +01:00
Removed Game::setTestTound() and Game::removeTestRound().
They are still available via the PublicGame class for interfaces.
This commit is contained in:
parent
24d601543a
commit
16a9a9b1a9
4 changed files with 8 additions and 24 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
/*********************************************************
|
||||
*********************************************************/
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
/***************************/
|
||||
|
|
|
@ -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();
|
||||
|
||||
/***************
|
||||
|
|
Loading…
Reference in a new issue