mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
Fixed a bug that while a match or tournament was just starting a player could still leave the table, setting the table / tournament / match to an undefined state. Now the player can only leave the Match / Tournament if it has started properly.
This commit is contained in:
parent
3f5f6a6166
commit
fec0744315
10 changed files with 159 additions and 100 deletions
|
|
@ -86,7 +86,7 @@ public interface MageServer {
|
|||
void updateDeck(String sessionId, UUID tableId, DeckCardLists deckList) throws MageException, GameException;
|
||||
boolean watchTable(String sessionId, UUID roomId, UUID tableId) throws MageException;
|
||||
boolean watchTournamentTable(String sessionId, UUID tableId) throws MageException;
|
||||
void leaveTable(String sessionId, UUID roomId, UUID tableId) throws MageException;
|
||||
boolean leaveTable(String sessionId, UUID roomId, UUID tableId) throws MageException;
|
||||
void swapSeats(String sessionId, UUID roomId, UUID tableId, int seatNum1, int seatNum2) throws MageException;
|
||||
void removeTable(String sessionId, UUID roomId, UUID tableId) throws MageException;
|
||||
boolean isTableOwner(String sessionId, UUID roomId, UUID tableId) throws MageException;
|
||||
|
|
@ -106,7 +106,7 @@ public interface MageServer {
|
|||
UUID getMainRoomId() throws MageException;
|
||||
|
||||
//game methods
|
||||
void startMatch(String sessionId, UUID roomId, UUID tableId) throws MageException;
|
||||
boolean startMatch(String sessionId, UUID roomId, UUID tableId) throws MageException;
|
||||
void joinGame(UUID gameId, String sessionId) throws MageException;
|
||||
void watchGame(UUID gameId, String sessionId) throws MageException;
|
||||
void stopWatching(UUID gameId, String sessionId) throws MageException;
|
||||
|
|
@ -127,7 +127,7 @@ public interface MageServer {
|
|||
void restorePriority(UUID gameId, String sessionId) throws MageException;
|
||||
|
||||
//tournament methods
|
||||
void startTournament(String sessionId, UUID roomId, UUID tableId) throws MageException;
|
||||
boolean startTournament(String sessionId, UUID roomId, UUID tableId) throws MageException;
|
||||
void joinTournament(UUID draftId, String sessionId) throws MageException;
|
||||
void quitTournament(UUID tournamentId, String sessionId) throws MageException;
|
||||
TournamentView getTournament(UUID tournamentId) throws MageException;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue