mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 12:22:10 -08:00
* Draft - Added "Quit Tournament" button to draft panel. Minor formatting.
This commit is contained in:
parent
024ec1169a
commit
8d2f4cc9ac
26 changed files with 340 additions and 157 deletions
|
|
@ -124,6 +124,7 @@ public interface MageServer {
|
|||
|
||||
//draft methods
|
||||
void joinDraft(UUID draftId, String sessionId) throws MageException;
|
||||
void quitDraft(UUID draftId, String sessionId) throws MageException;
|
||||
DraftPickView sendCardPick(UUID draftId, String sessionId, UUID cardId) throws MageException;
|
||||
|
||||
//challenge methods
|
||||
|
|
|
|||
|
|
@ -1000,6 +1000,7 @@ public class SessionImpl implements Session {
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean quitTournament(UUID tournamentId) {
|
||||
try {
|
||||
|
|
@ -1015,6 +1016,19 @@ public class SessionImpl implements Session {
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean quitDraft(UUID draftId) {
|
||||
try {
|
||||
if (isConnected()) {
|
||||
server.quitDraft(draftId, sessionId);
|
||||
return true;
|
||||
}
|
||||
} catch (MageException ex) {
|
||||
handleMageException(ex);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean undo(UUID gameId) {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -57,6 +57,8 @@ public interface GamePlay {
|
|||
|
||||
boolean quitTournament(UUID tournamentId);
|
||||
|
||||
boolean quitDraft(UUID draftId);
|
||||
|
||||
boolean submitDeck(UUID tableId, DeckCardLists deck);
|
||||
|
||||
boolean updateDeck(UUID tableId, DeckCardLists deck);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue