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 |
|
|
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 |
|
|
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 |
|
|