Improvements player cancels or leaves match or tournament. Draft can replace human player by draft bot if human leaves.

This commit is contained in:
LevelX2 2013-10-03 22:42:16 +02:00
parent 089fbf15b1
commit e2532a9b11
18 changed files with 300 additions and 102 deletions

View file

@ -48,6 +48,10 @@ public class TournamentManager {
return INSTANCE;
}
public TournamentController getTournamentController(UUID tournamentId) {
return controllers.get(tournamentId);
}
public void createTournamentSession(Tournament tournament, ConcurrentHashMap<UUID, UUID> userPlayerMap, UUID tableId) {
TournamentController tournamentController = new TournamentController(tournament, userPlayerMap, tableId);
controllers.put(tournament.getId(), tournamentController);
@ -63,7 +67,7 @@ public class TournamentManager {
public void kill(UUID tournamentId, UUID userId) {
controllers.get(tournamentId).kill(userId);
controllers.get(tournamentId).quit(userId);
}
public void timeout(UUID tournamentId, UUID userId) {