mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
* Some minor changes to match / tournament table view.
This commit is contained in:
parent
146a41dcb8
commit
39d2551996
1 changed files with 5 additions and 7 deletions
|
@ -141,21 +141,19 @@ public class TableView implements Serializable {
|
|||
this.controllerName += sb1.toString();
|
||||
StringBuilder infoText = new StringBuilder();
|
||||
StringBuilder stateText = new StringBuilder(table.getState().toString());
|
||||
infoText.append("Wins:").append(table.getTournament().getOptions().getMatchOptions().getWinsNeeded()).append(" ");
|
||||
if (!table.getState().equals(TableState.WAITING)) {
|
||||
infoText.append("Wins:").append(table.getTournament().getOptions().getMatchOptions().getWinsNeeded());
|
||||
infoText.append(" Seats: ").append(table.getTournament().getPlayers().size()).append("/").append(table.getNumberOfSeats());
|
||||
}
|
||||
|
||||
switch (table.getState()) {
|
||||
case WAITING:
|
||||
stateText.append(" (").append(table.getTournament().getPlayers().size()).append("/").append(table.getNumberOfSeats()).append(")");
|
||||
if (!table.getTournament().getOptions().getPassword().isEmpty()) {
|
||||
infoText.append(" PW");
|
||||
stateText.append(" PW");
|
||||
}
|
||||
case READY_TO_START:
|
||||
case STARTING:
|
||||
infoText.append(" Timer: ").append(table.getTournament().getOptions().getMatchOptions().getMatchTimeLimit().toString());
|
||||
if (table.getTournament().getOptions().getMatchOptions().getFreeMulligans() > 0) {
|
||||
infoText.append(" Free Mul.: ").append(table.getTournament().getOptions().getMatchOptions().getFreeMulligans());
|
||||
infoText.append(" Fr.Mul: ").append(table.getTournament().getOptions().getMatchOptions().getFreeMulligans());
|
||||
}
|
||||
if (table.getTournament().getTournamentType().isLimited()) {
|
||||
infoText.append(" Constr. Time: ").append(table.getTournament().getOptions().getLimitedOptions().getConstructionTime()/60).append(" Min.");
|
||||
|
|
Loading…
Reference in a new issue