forked from External/mage
[app-wiring-refactor]: Apply review comments:
- Add reference to original library in `FluentBuilder`. - Change `I<Name>` notation to `<Name>Impl` notation. - Move error config to test resources - Add comment with config instruction - Add config to the documentation
This commit is contained in:
parent
e8bb8ae24b
commit
6e3750d50a
41 changed files with 171 additions and 146 deletions
|
|
@ -0,0 +1,32 @@
|
|||
package mage.server.managers;
|
||||
|
||||
import mage.cards.decks.Deck;
|
||||
import mage.game.tournament.Tournament;
|
||||
import mage.server.tournament.TournamentController;
|
||||
import mage.view.TournamentView;
|
||||
|
||||
import java.util.Optional;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
public interface TournamentManager {
|
||||
Optional<TournamentController> getTournamentController(UUID tournamentId);
|
||||
|
||||
void createTournamentSession(Tournament tournament, ConcurrentHashMap<UUID, UUID> userPlayerMap, UUID tableId);
|
||||
|
||||
void joinTournament(UUID tournamentId, UUID userId);
|
||||
|
||||
void quit(UUID tournamentId, UUID userId);
|
||||
|
||||
void timeout(UUID tournamentId, UUID userId);
|
||||
|
||||
void submitDeck(UUID tournamentId, UUID playerId, Deck deck);
|
||||
|
||||
boolean updateDeck(UUID tournamentId, UUID playerId, Deck deck);
|
||||
|
||||
TournamentView getTournamentView(UUID tournamentId);
|
||||
|
||||
Optional<UUID> getChatId(UUID tournamentId);
|
||||
|
||||
void removeTournament(UUID tournamentId);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue