forked from External/mage
more draft/sealed fixes
This commit is contained in:
parent
e189543699
commit
fabcc28e46
16 changed files with 171 additions and 86 deletions
|
|
@ -84,10 +84,18 @@ public class Table implements Serializable {
|
|||
state = TableState.DUELING;
|
||||
}
|
||||
|
||||
public void initTournament() {
|
||||
state = TableState.DUELING;
|
||||
}
|
||||
|
||||
public void initDraft() {
|
||||
state = TableState.DRAFTING;
|
||||
}
|
||||
|
||||
public void construct() {
|
||||
state = TableState.CONSTRUCTING;
|
||||
}
|
||||
|
||||
public void endGame() {
|
||||
state = TableState.FINISHED;
|
||||
}
|
||||
|
|
@ -157,24 +165,8 @@ public class Table implements Serializable {
|
|||
return this.name;
|
||||
}
|
||||
|
||||
public void fireSideboardEvent(UUID playerId, Deck deck) {
|
||||
tableEventSource.fireTableEvent(EventType.SIDEBOARD, playerId, deck);
|
||||
}
|
||||
|
||||
public void fireConstructEvent(UUID playerId, Deck deck) {
|
||||
tableEventSource.fireTableEvent(EventType.CONSTRUCT, playerId, deck);
|
||||
}
|
||||
|
||||
public void fireSubmitDeckEvent(UUID playerId, Deck deck) {
|
||||
tableEventSource.fireTableEvent(EventType.SUBMIT_DECK, playerId, deck);
|
||||
}
|
||||
|
||||
public void addTableEventListener(Listener<TableEvent> listener) {
|
||||
tableEventSource.addListener(listener);
|
||||
}
|
||||
|
||||
public void initTournament() {
|
||||
state = TableState.CONSTRUCTING;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue