eliot-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Eliot-dev] eliot/game game.cpp game.h


From: Olivier Teulière
Subject: [Eliot-dev] eliot/game game.cpp game.h
Date: Sun, 30 Nov 2008 21:07:19 +0000

CVSROOT:        /cvsroot/eliot
Module name:    eliot
Changes by:     Olivier Teulière <ipkiss>      08/11/30 21:07:19

Modified files:
        game           : game.cpp game.h 

Log message:
        Removed Game::back()

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/game/game.cpp?cvsroot=eliot&r1=1.49&r2=1.50
http://cvs.savannah.gnu.org/viewcvs/eliot/game/game.h?cvsroot=eliot&r1=1.44&r2=1.45

Patches:
Index: game.cpp
===================================================================
RCS file: /cvsroot/eliot/eliot/game/game.cpp,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -b -r1.49 -r1.50
--- game.cpp    30 Nov 2008 20:51:42 -0000      1.49
+++ game.cpp    30 Nov 2008 21:07:19 -0000      1.50
@@ -74,20 +74,6 @@
 }
 
 
-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();

Index: game.h
===================================================================
RCS file: /cvsroot/eliot/eliot/game/game.h,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -b -r1.44 -r1.45
--- game.h      23 Nov 2008 17:07:42 -0000      1.44
+++ game.h      30 Nov 2008 21:07:19 -0000      1.45
@@ -165,15 +165,6 @@
      */
     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();
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]