Class NullDraftBehaviour
java.lang.Object
com.hiddenswitch.spellsource.draft.NullDraftBehaviour
- All Implemented Interfaces:
DraftBehaviour
A behaviour which makes no choices, so its reply handlers are never called.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchooseCardAsync(List<String> cards, io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> selectedCardIndex) Given a list of cards, choose one card.voidchooseHeroAsync(List<String> classes, io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> result) Given a list of champions, which champion will this draft be?voidnotifyDraftState(PublicDraftState state) Notifies the behaviour of the current public draft state as soon as it changes.voidnotifyDraftStateAsync(PublicDraftState state, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> acknowledged) Notifies the behaviour of the current public draft state as soon as it changes, and receives a callback when the client has acknowledged receipt of the data.
-
Constructor Details
-
NullDraftBehaviour
public NullDraftBehaviour()
-
-
Method Details
-
chooseHeroAsync
public void chooseHeroAsync(List<String> classes, io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> result) Description copied from interface:DraftBehaviourGiven a list of champions, which champion will this draft be?- Specified by:
chooseHeroAsyncin interfaceDraftBehaviour- Parameters:
classes- Some number of champions.result- Called with the chosen champion.
-
chooseCardAsync
public void chooseCardAsync(List<String> cards, io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> selectedCardIndex) Description copied from interface:DraftBehaviourGiven a list of cards, choose one card. This card is typically added to the deck.- Specified by:
chooseCardAsyncin interfaceDraftBehaviour- Parameters:
cards- A list of choices currently.selectedCardIndex- Called with the index of the choice.
-