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 TypeMethodDescriptionvoid
chooseCardAsync
(List<String> cards, io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> selectedCardIndex) Given a list of cards, choose one card.void
chooseHeroAsync
(List<String> classes, io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> result) Given a list of champions, which champion will this draft be?void
notifyDraftState
(PublicDraftState state) Notifies the behaviour of the current public draft state as soon as it changes.void
notifyDraftStateAsync
(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:DraftBehaviour
Given a list of champions, which champion will this draft be?- Specified by:
chooseHeroAsync
in 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:DraftBehaviour
Given a list of cards, choose one card. This card is typically added to the deck.- Specified by:
chooseCardAsync
in interfaceDraftBehaviour
- Parameters:
cards
- A list of choices currently.selectedCardIndex
- Called with the index of the choice.
-