forked from External/mage
* 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
|
|
@ -55,6 +55,7 @@ public class DraftSession {
|
|||
protected UUID playerId;
|
||||
protected Draft draft;
|
||||
protected boolean killed = false;
|
||||
protected UUID markedCard;
|
||||
|
||||
private ScheduledFuture<?> futureTimeout;
|
||||
protected static ScheduledExecutorService timeoutExecutor = ThreadExecutor.getInstance().getTimeoutExecutor();
|
||||
|
|
@ -63,6 +64,7 @@ public class DraftSession {
|
|||
this.userId = userId;
|
||||
this.draft = draft;
|
||||
this.playerId = playerId;
|
||||
this.markedCard = null;
|
||||
}
|
||||
|
||||
public boolean init() {
|
||||
|
|
@ -175,4 +177,12 @@ public class DraftSession {
|
|||
return draft.getId();
|
||||
}
|
||||
|
||||
public UUID getMarkedCard() {
|
||||
return markedCard;
|
||||
}
|
||||
|
||||
public void setMarkedCard(UUID markedCard) {
|
||||
this.markedCard = markedCard;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue