initial drafting stuff

This commit is contained in:
BetaSteward 2011-01-03 23:52:28 -05:00
parent 5679c2de15
commit 7bea472fff
13 changed files with 469 additions and 3 deletions

View file

@ -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);