forked from External/mage
- 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
34 lines
924 B
Java
34 lines
924 B
Java
package mage.server.managers;
|
|
|
|
import mage.game.draft.Draft;
|
|
import mage.server.draft.DraftController;
|
|
import mage.view.DraftPickView;
|
|
|
|
import java.util.Optional;
|
|
import java.util.Set;
|
|
import java.util.UUID;
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
|
|
public interface DraftManager {
|
|
UUID createDraftSession(Draft draft, ConcurrentHashMap<UUID, UUID> userPlayerMap, UUID tableId);
|
|
|
|
void joinDraft(UUID draftId, UUID userId);
|
|
|
|
void destroyChatSession(UUID gameId);
|
|
|
|
DraftPickView sendCardPick(UUID draftId, UUID userId, UUID cardId, Set<UUID> hiddenCards);
|
|
|
|
void sendCardMark(UUID draftId, UUID userId, UUID cardId);
|
|
|
|
void removeSession(UUID userId);
|
|
|
|
void kill(UUID draftId, UUID userId);
|
|
|
|
void timeout(UUID gameId, UUID userId);
|
|
|
|
void removeDraft(UUID draftId);
|
|
|
|
DraftController getControllerByDraftId(UUID draftId);
|
|
|
|
Optional<DraftController> getController(UUID tableId);
|
|
}
|