more draft/sealed fixes

This commit is contained in:
BetaSteward 2011-02-13 08:20:14 -05:00
parent e189543699
commit fabcc28e46
16 changed files with 171 additions and 86 deletions

View file

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