Last changes before deploying test queue to production server.
This commit is contained in:
@@ -9,5 +9,5 @@ public interface HallInfoVisitor {
|
||||
|
||||
public void runningPlayerGame(String gameId);
|
||||
|
||||
public void visitTournamentQueue(String tournamentQueueKey, String collectionName, String formatName, String tournamentQueueName, int playerCount, boolean playerSignedUp);
|
||||
public void visitTournamentQueue(String tournamentQueueKey, int cost, String collectionName, String formatName, String tournamentQueueName, int playerCount, boolean playerSignedUp);
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ public class HallServer extends AbstractServer {
|
||||
_runningTournaments.addAll(tournamentService.getLiveTournaments());
|
||||
|
||||
_tournamentQueues.put("fotr_queue", new SingleEliminationRecurringQueue(0, "fotr_block",
|
||||
new CollectionType("default", "All cards"), "fotrQueue-", "Fellowship Block 4-man", 2,
|
||||
new CollectionType("default", "All cards"), "fotrQueue-", "Test Fellowship Block 4-man", 4,
|
||||
tournamentService));
|
||||
}
|
||||
|
||||
@@ -280,7 +280,7 @@ public class HallServer extends AbstractServer {
|
||||
for (Map.Entry<String, TournamentQueue> tournamentQueueEntry : _tournamentQueues.entrySet()) {
|
||||
String tournamentQueueKey = tournamentQueueEntry.getKey();
|
||||
TournamentQueue tournamentQueue = tournamentQueueEntry.getValue();
|
||||
visitor.visitTournamentQueue(tournamentQueueKey, tournamentQueue.getCollectionType().getFullName(),
|
||||
visitor.visitTournamentQueue(tournamentQueueKey, tournamentQueue.getCost(), tournamentQueue.getCollectionType().getFullName(),
|
||||
tournamentQueue.getFormat(), tournamentQueue.getTournamentQueueName(),
|
||||
tournamentQueue.getPlayerCount(), tournamentQueue.isPlayerSignedUp(player.getName()));
|
||||
}
|
||||
@@ -538,7 +538,7 @@ public class HallServer extends AbstractServer {
|
||||
|
||||
@Override
|
||||
public void broadcastMessage(String message) {
|
||||
_hallChat.sendMessage("System", message);
|
||||
_hallChat.sendMessage("TournamentSystem", message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,6 +34,11 @@ public class SingleEliminationRecurringQueue implements TournamentQueue {
|
||||
_tournamentService = tournamentService;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getCost() {
|
||||
return _cost;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFormat() {
|
||||
return _format;
|
||||
|
||||
@@ -6,6 +6,8 @@ import com.gempukku.lotro.game.Player;
|
||||
import com.gempukku.lotro.logic.vo.LotroDeck;
|
||||
|
||||
public interface TournamentQueue {
|
||||
public int getCost();
|
||||
|
||||
public String getFormat();
|
||||
|
||||
public CollectionType getCollectionType();
|
||||
|
||||
@@ -267,10 +267,11 @@ public class HallResource extends AbstractResource {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void visitTournamentQueue(String tournamentQueueKey, String collectionName, String formatName,
|
||||
public void visitTournamentQueue(String tournamentQueueKey, int cost, String collectionName, String formatName,
|
||||
String tournamentQueueName, int playerCount, boolean playerSignedUp) {
|
||||
Element tournamentQueue = _doc.createElement("tournamentQueue");
|
||||
tournamentQueue.setAttribute("id", tournamentQueueKey);
|
||||
tournamentQueue.setAttribute("cost", String.valueOf(cost));
|
||||
tournamentQueue.setAttribute("tournament", tournamentQueueName);
|
||||
tournamentQueue.setAttribute("players", String.valueOf(playerCount));
|
||||
tournamentQueue.setAttribute("format", formatName);
|
||||
|
||||
Reference in New Issue
Block a user