/[eliot]/eliot/utils/game_io.cpp
ViewVC logotype

Diff of /eliot/utils/game_io.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by ipkiss, Fri Nov 4 23:26:04 2005 UTC revision 1.5 by ipkiss, Sat Nov 5 15:48:59 2005 UTC
# Line 24  Line 24 
24  #include "game_io.h"  #include "game_io.h"
25  #include "game.h"  #include "game.h"
26  #include "training.h"  #include "training.h"
27    #include "player.h"
28    
29  using namespace std;  using namespace std;
30    
# Line 202  void GameIO::printSearchResults(ostream Line 203  void GameIO::printSearchResults(ostream
203    
204  void GameIO::printPoints(ostream &out, const Game &iGame)  void GameIO::printPoints(ostream &out, const Game &iGame)
205  {  {
206      out << iGame.getPlayerPoints(0) << endl;      out << iGame.getPlayer(0).getPoints() << endl;
207  }  }
208    
209    
# Line 211  void GameIO::printAllPoints(ostream &out Line 212  void GameIO::printAllPoints(ostream &out
212      for (int i = 0; i < iGame.getNPlayers(); i++)      for (int i = 0; i < iGame.getNPlayers(); i++)
213      {      {
214          out << "Joueur " << i << ": "          out << "Joueur " << i << ": "
215              << setw(4) << iGame.getPlayerPoints(i) << endl;              << setw(4) << iGame.getPlayer(i).getPoints() << endl;
216      }      }
217  }  }
218    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26