mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
initial drafting stuff
This commit is contained in:
parent
5679c2de15
commit
7bea472fff
13 changed files with 469 additions and 3 deletions
|
|
@ -321,6 +321,18 @@ public class Session {
|
|||
return false;
|
||||
}
|
||||
|
||||
public boolean sendCardPick(UUID draftId, UUID cardId) {
|
||||
try {
|
||||
server.sendPlayerUUID(draftId, sessionId, cardId);
|
||||
return true;
|
||||
} catch (RemoteException ex) {
|
||||
handleRemoteException(ex);
|
||||
} catch (MageException ex) {
|
||||
handleMageException(ex);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean joinChat(UUID chatId, ChatPanel chat) {
|
||||
try {
|
||||
server.joinChat(chatId, sessionId, userName);
|
||||
|
|
@ -465,6 +477,18 @@ public class Session {
|
|||
return false;
|
||||
}
|
||||
|
||||
public boolean startDraft(UUID roomId, UUID tableId) {
|
||||
try {
|
||||
server.startDraft(sessionId, roomId, tableId);
|
||||
return true;
|
||||
} catch (RemoteException ex) {
|
||||
handleRemoteException(ex);
|
||||
} catch (MageException ex) {
|
||||
handleMageException(ex);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean submitDeck(UUID tableId, DeckCardLists deck) {
|
||||
try {
|
||||
server.submitDeck(sessionId, tableId, deck);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue