Tournaments status is updated now and if tournament finished, it's moved to the lower finished matches view.

This commit is contained in:
LevelX2 2013-03-27 22:31:15 +01:00
parent 095c3c5776
commit 402f7fffd9
12 changed files with 89 additions and 24 deletions

View file

@ -95,11 +95,14 @@ public class GamesRoomImpl extends RoomImpl implements GamesRoom, Serializable {
tableList.add(new TableView(table));
}
else if (matchList.size() < 50) {
matchList.add(new MatchView(table.getMatch()));
} else {
// more since 50 matches finished since this match so remobe it
if (table.isTournament()) {
// is this possible?
matchList.add(new MatchView(table));
} else {
matchList.add(new MatchView(table.getMatch()));
}
} else {
// more since 50 matches finished since this match so remove it
if (table.isTournament()) {
// Any special action needed?
}
this.removeTable(table.getId());