mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-29 20:34:56 +01:00
Removed Game::back()
This commit is contained in:
parent
67306bec3e
commit
06dd7dff71
2 changed files with 0 additions and 23 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue