[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Eliot-dev] Changes to eliot/utils/game_io.cpp
From: |
eliot-dev |
Subject: |
[Eliot-dev] Changes to eliot/utils/game_io.cpp |
Date: |
Sat, 05 Nov 2005 10:49:02 -0500 |
Index: eliot/utils/game_io.cpp
diff -u eliot/utils/game_io.cpp:1.4 eliot/utils/game_io.cpp:1.5
--- eliot/utils/game_io.cpp:1.4 Fri Nov 4 23:26:04 2005
+++ eliot/utils/game_io.cpp Sat Nov 5 15:48:59 2005
@@ -24,6 +24,7 @@
#include "game_io.h"
#include "game.h"
#include "training.h"
+#include "player.h"
using namespace std;
@@ -202,7 +203,7 @@
void GameIO::printPoints(ostream &out, const Game &iGame)
{
- out << iGame.getPlayerPoints(0) << endl;
+ out << iGame.getPlayer(0).getPoints() << endl;
}
@@ -211,7 +212,7 @@
for (int i = 0; i < iGame.getNPlayers(); i++)
{
out << "Joueur " << i << ": "
- << setw(4) << iGame.getPlayerPoints(i) << endl;
+ << setw(4) << iGame.getPlayer(i).getPoints() << endl;
}
}