mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 11:49:56 -08:00
* Draft - Added possibility to mark a card to draft on timeout. Added sounds to draft. Changed compression of some sound files.
This commit is contained in:
parent
c3adb1337b
commit
e6c7fa5f96
28 changed files with 317 additions and 90 deletions
|
|
@ -131,6 +131,7 @@ public interface MageServer {
|
|||
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;
|
||||
void sendCardMark(UUID draftId, String sessionId, UUID cardId) throws MageException;
|
||||
|
||||
//challenge methods
|
||||
// void startChallenge(String sessionId, UUID roomId, UUID tableId, UUID challengeId) throws MageException;
|
||||
|
|
|
|||
|
|
@ -771,6 +771,20 @@ public class SessionImpl implements Session {
|
|||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DraftPickView sendCardMark(UUID draftId, UUID cardId) {
|
||||
try {
|
||||
if (isConnected()) {
|
||||
server.sendCardMark(draftId, sessionId, cardId);
|
||||
}
|
||||
} catch (MageException ex) {
|
||||
handleMageException(ex);
|
||||
} catch (Throwable t) {
|
||||
handleThrowable(t);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean joinChat(UUID chatId) {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ public interface GamePlay {
|
|||
boolean updateDeck(UUID tableId, DeckCardLists deck);
|
||||
|
||||
DraftPickView sendCardPick(UUID draftId, UUID cardId);
|
||||
DraftPickView sendCardMark(UUID draftId, UUID cardId);
|
||||
|
||||
/**
|
||||
* magenoxx:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue