Mise à jour des points totaux

This commit is contained in:
Yohann D'ANELLO 2019-12-05 17:32:40 +01:00
parent a6bd3fe1c0
commit 3505c7a97a

View File

@ -541,6 +541,12 @@ public class NewGameFragment extends Fragment {
game.setMiseries(miseriesList);
game.calculateScores();
for (int i = 0; i < game.getGameType().getNbPlayers(); ++i)
players.get(i).addScore(game.getGameType(), game.getPoints(players.get(i)));
for (int i = 0; i < 6; ++i)
totalPoints[i].setText(String.valueOf(((Player) spinners[i].getSelectedItem()).getScore(Game.GameType.values()[nb_players.getProgress()])));
return game;
}
});