Mise à jour des points totaux
This commit is contained in:
parent
a6bd3fe1c0
commit
3505c7a97a
@ -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;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user