mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-02-06 08:48:21 +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()
|
void Game::shuffleRack()
|
||||||
{
|
{
|
||||||
PlayedRack pld = getCurrentPlayer().getCurrentRack();
|
PlayedRack pld = getCurrentPlayer().getCurrentRack();
|
||||||
|
|
|
@ -165,15 +165,6 @@ public:
|
||||||
*/
|
*/
|
||||||
virtual int play(const wstring &iCoord, const wstring &iWord) = 0;
|
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
|
/// Shuffle the rack of the current player
|
||||||
void shuffleRack();
|
void shuffleRack();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue