2015-02-19 17:03:08 -08:00
|
|
|
package magic.model;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Set;
|
2020-01-15 12:02:42 -08:00
|
|
|
|
2015-02-19 17:03:08 -08:00
|
|
|
import magic.exception.UndoClickedException;
|
|
|
|
import magic.model.choice.MagicPlayChoiceResult;
|
|
|
|
|
|
|
|
public interface IUIGameController extends IGameController {
|
2015-12-31 02:54:52 -08:00
|
|
|
|
2015-02-19 17:03:08 -08:00
|
|
|
<T> T getChoiceClicked();
|
|
|
|
boolean isActionClicked();
|
2017-05-16 08:42:09 -07:00
|
|
|
void clearCardsToChoose();
|
2015-02-19 17:03:08 -08:00
|
|
|
void clearValidChoices();
|
|
|
|
void disableActionButton(final boolean thinking);
|
|
|
|
void enableForwardButton();
|
|
|
|
void focusViewers(final int handGraveyard);
|
|
|
|
void pause(final int t);
|
|
|
|
void setSourceCardDefinition(final MagicSource source);
|
|
|
|
void setValidChoices(final Set<?> aValidChoices,final boolean aCombatChoice);
|
2017-05-16 08:42:09 -07:00
|
|
|
void showCardsToChoose(final MagicCardList cards);
|
2015-02-19 17:03:08 -08:00
|
|
|
void showMessage(final MagicSource source,final String message);
|
|
|
|
void updateGameView();
|
|
|
|
void waitForInput() throws UndoClickedException;
|
2015-03-26 06:07:57 -07:00
|
|
|
void refreshSidebarLayout();
|
2017-01-11 12:09:50 -08:00
|
|
|
void setStackFastForward(boolean b);
|
|
|
|
boolean isStackFastForward();
|
|
|
|
void doStackItemPause();
|
2015-12-31 02:54:52 -08:00
|
|
|
|
2015-02-19 17:03:08 -08:00
|
|
|
// Choices
|
|
|
|
MagicSubType getLandSubTypeChoice(final MagicSource source) throws UndoClickedException;
|
|
|
|
boolean getPayBuyBackCostChoice(final MagicSource source, final String costText) throws UndoClickedException;
|
|
|
|
MagicColor getColorChoice(final MagicSource source) throws UndoClickedException;
|
|
|
|
int getMultiKickerCountChoice(final MagicSource source, final MagicManaCost cost, final int maximumCount, final String name) throws UndoClickedException;
|
|
|
|
int getSingleKickerCountChoice(final MagicSource source, final MagicManaCost cost, final String name) throws UndoClickedException;
|
|
|
|
boolean getMayChoice(final MagicSource source, final String description) throws UndoClickedException;
|
|
|
|
boolean getTakeMulliganChoice(final MagicSource source, final MagicPlayer player) throws UndoClickedException;
|
|
|
|
int getModeChoice(final MagicSource source, final List<Integer> availableModes) throws UndoClickedException;
|
|
|
|
int getPayManaCostXChoice(final MagicSource source, final int maximumX) throws UndoClickedException;
|
|
|
|
MagicPlayChoiceResult getPlayChoice(final MagicSource source, final List<MagicPlayChoiceResult> results) throws UndoClickedException;
|
|
|
|
}
|