summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9656502)
This is an unfortunate consequence of the migration to multiround:
I can't count on gameManager.getActivePlayers() anymore since I
don't deactivate players simply for losing a round.
I'm getting closer and closer to wrapping GameManager.
boolean noStones = true;
int delta = 0;
for (Player player : gameManager.getActivePlayers()) {
boolean noStones = true;
int delta = 0;
for (Player player : gameManager.getActivePlayers()) {
+ if (model.haveWinner() && player.getIndex() == model.getLoser())
+ continue;
player.stoneThrow = player.model.getStones();
player.model.setStones(0);
delta += player.stoneThrow * player.model.getMultiplier();
player.stoneThrow = player.model.getStones();
player.model.setStones(0);
delta += player.stoneThrow * player.model.getMultiplier();