sb.append(" is over. "); } else { sb.append("Match [").append(match.getName()).append("] is over. ");
public synchronized void startMatch() { if (table.getState() == TableState.STARTING) { try { if (table.isTournamentSubTable()) { logger.info("Tourn. match started id:" + match.getId() + " tournId: " + table.getTournament().getId()); } else { UserManager.instance.getUser(userId).ifPresent(user -> { logger.info("MATCH started [" + match.getName() + "] " + match.getId() + '(' + user.getName() + ')'); logger.debug("- " + match.getOptions().getGameType() + " - " + match.getOptions().getDeckType()); }); } match.startMatch(); startGame(null); } catch (GameException ex) { logger.fatal("Error starting match ", ex); match.endGame(); } } }
logger.warn("-- matchId:" + match.getId() + " [" + match.getName() + ']');
private void initMatchTable(Table table) { Match match = table.getMatch(); this.matchId = match.getId(); this.matchName = match.getName(); this.gameType = match.getOptions().getGameType();
logger.info("GAME started " + (match.getGame() != null ? match.getGame().getId() : "no Game") + " [" + match.getName() + "] " + creator + " - " + opponent.toString()); logger.debug("- matchId: " + match.getId() + " [" + match.getName() + ']'); if (match.getGame() != null) { logger.debug("- chatId: " + GameManager.instance.getChatId(match.getGame().getId()));
if (match != null && match.hasEnded()) { MatchProto.Builder matchBuilder = roundBuilder.addMatchesBuilder() .setName(match.getName()) .setGameType(match.getOptions().getGameType()) .setDeckType(match.getOptions().getDeckType())
matchHolder.nome_partita.setText(match.getName().toString()); matchHolder.citta.setText(match.getCitta().toString()); matchHolder.indirizzo.setText(match.getIndirizzo().toString());