Removed Game::back()

This commit is contained in:
Olivier Teulière 2008-11-30 21:07:19 +00:00
parent 67306bec3e
commit 06dd7dff71
2 changed files with 0 additions and 23 deletions

View file

@ -74,20 +74,6 @@ const Player& Game::getPlayer(unsigned int iNum) const
}
int Game::back(unsigned int n)
{
if (m_history.getSize() < n)
throw GameException("Cannot go back that far");
for (unsigned int i = 0; i < n; ++i)
{
m_navigation.prevTurn();
}
m_navigation.clearFuture();
return 0;
}
void Game::shuffleRack()
{
PlayedRack pld = getCurrentPlayer().getCurrentRack();

View file

@ -165,15 +165,6 @@ public:
*/
virtual int play(const wstring &iCoord, const wstring &iWord) = 0;
/**
* Go back to turn iTurn.
* We must have: iTurn < getHistory().getSize()
* Possible return values:
* 0: everything went fine
* 1: iTurn is invalid
*/
int back(unsigned int iTurn);
/// Shuffle the rack of the current player
void shuffleRack();