forked from External/mage
Added a game end dialog, that shows the result of the finished game.
This commit is contained in:
parent
19726268ff
commit
ae44981cfa
19 changed files with 922 additions and 4 deletions
|
|
@ -155,6 +155,10 @@ public class TableController {
|
|||
tournament.addPlayer(player, seat.getPlayerType());
|
||||
table.joinTable(player, seat);
|
||||
User user = UserManager.getInstance().getUser(userId);
|
||||
if (user == null) {
|
||||
logger.fatal(new StringBuilder("couldn't get user ").append(name).append(" for join tornament userId = ").append(userId).toString());
|
||||
return false;
|
||||
}
|
||||
user.addTable(player.getId(), table);
|
||||
logger.info("player joined " + player.getId());
|
||||
//only inform human players and add them to sessionPlayerMap
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue