mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 11:02:00 -08:00
show Table Waiting dialog on reconnect
This commit is contained in:
parent
161404242f
commit
2ad50b2983
7 changed files with 82 additions and 29 deletions
|
|
@ -31,7 +31,6 @@ package mage.view;
|
|||
import java.io.Serializable;
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.cards.Card;
|
||||
import mage.cards.decks.Deck;
|
||||
|
||||
/**
|
||||
|
|
@ -42,10 +41,12 @@ public class TableClientMessage implements Serializable {
|
|||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private DeckView deck;
|
||||
private UUID roomId;
|
||||
private UUID tableId;
|
||||
private UUID gameId;
|
||||
private UUID playerId;
|
||||
private int time;
|
||||
private boolean flag;
|
||||
|
||||
public TableClientMessage(Deck deck, UUID tableId, int time) {
|
||||
this.deck = new DeckView(deck);
|
||||
|
|
@ -58,7 +59,13 @@ public class TableClientMessage implements Serializable {
|
|||
this.playerId = playerId;
|
||||
}
|
||||
|
||||
public DeckView getDeck() {
|
||||
public TableClientMessage(UUID roomId, UUID tableId, boolean flag) {
|
||||
this.roomId = roomId;
|
||||
this.tableId = tableId;
|
||||
this.flag = flag;
|
||||
}
|
||||
|
||||
public DeckView getDeck() {
|
||||
return deck;
|
||||
}
|
||||
|
||||
|
|
@ -66,7 +73,11 @@ public class TableClientMessage implements Serializable {
|
|||
return tableId;
|
||||
}
|
||||
|
||||
public UUID getGameId() {
|
||||
public UUID getRoomId() {
|
||||
return roomId;
|
||||
}
|
||||
|
||||
public UUID getGameId() {
|
||||
return gameId;
|
||||
}
|
||||
|
||||
|
|
@ -77,6 +88,10 @@ public class TableClientMessage implements Serializable {
|
|||
public int getTime() {
|
||||
return time;
|
||||
}
|
||||
|
||||
public boolean getFlag() {
|
||||
return flag;
|
||||
}
|
||||
|
||||
public void cleanUp() {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue