eliot-dev
[Top][All Lists]
Advanced

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

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


From: eliot-dev
Subject: [Eliot-dev] eliot/game bag.h game.h game_io.cpp
Date: Sat, 23 Dec 2006 16:48:16 +0000

CVSROOT:        /sources/eliot
Module name:    eliot
Changes by:     Olivier Teulière <ipkiss>      06/12/23 16:48:16

Modified files:
        game           : bag.h game.h game_io.cpp 

Log message:
        Cosmetic changes

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/game/bag.h?cvsroot=eliot&r1=1.8&r2=1.9
http://cvs.savannah.gnu.org/viewcvs/eliot/game/game.h?cvsroot=eliot&r1=1.29&r2=1.30
http://cvs.savannah.gnu.org/viewcvs/eliot/game/game_io.cpp?cvsroot=eliot&r1=1.4&r2=1.5

Patches:
Index: bag.h
===================================================================
RCS file: /sources/eliot/eliot/game/bag.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- bag.h       1 Jan 2006 19:49:35 -0000       1.8
+++ bag.h       23 Dec 2006 16:48:15 -0000      1.9
@@ -47,7 +47,7 @@
 
     /**
      * Return how many tiles/vowels/consonants are available
-     * Warning: nVowels(b) + nConsonants(b) != nTiles(b),
+     * Warning: b.nVowels() + b.nConsonants() != b.nTiles(),
      * because of the jokers and the 'Y'.
      */
     unsigned int nTiles() const  { return m_ntiles; }

Index: game.h
===================================================================
RCS file: /sources/eliot/eliot/game/game.h,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -b -r1.29 -r1.30
--- game.h      11 Aug 2006 22:13:41 -0000      1.29
+++ game.h      23 Dec 2006 16:48:15 -0000      1.30
@@ -38,11 +38,6 @@
 using namespace std;
 
 
-/*************************
- * Ident string used to identify saved Eliot games
- *************************/
-#define IDENT_STRING "Eliot"
-
 /**
  * Parent class of all the Game types.
  * It offers the common attributes (Board, Bag, etc...) as well as useful

Index: game_io.cpp
===================================================================
RCS file: /sources/eliot/eliot/game/game_io.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- game_io.cpp 11 Aug 2006 22:14:49 -0000      1.4
+++ game_io.cpp 23 Dec 2006 16:48:15 -0000      1.5
@@ -486,12 +486,11 @@
 
 void Game::gameSaveFormat_14(ostream &out) const
 {
-    int i;
     char line[100];
-    const char decal[]="   ";
+    const string decal = "   ";
     out << IDENT_STRING << endl << endl;
 
-    for(i = 0; i < m_history.getSize(); i++)
+    for (int i = 0; i < m_history.getSize(); i++)
     {
         const Turn& turn = m_history.getTurn(i);
         string rack = 
convertToMb(turn.getPlayedRack().toString(PlayedRack::RACK_EXTRA));




reply via email to

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