public interface IDiscardView extends IOverlayView
| Modifier and Type | Method and Description |
|---|---|
void |
setDiscardButtonEnabled(boolean enabled)
Used to enable or disable the discard button.
|
void |
setResourceAmountChangeEnabled(ResourceType resource,
boolean increase,
boolean decrease)
Used to specify whether or not the discard amount of the specified
resource can be increased and decreased.
|
void |
setResourceDiscardAmount(ResourceType resource,
int amount)
Sets the discard amount displayed for the specified resource.
|
void |
setResourceMaxAmount(ResourceType resource,
int maxAmount)
Sets the maximum amount displayed for the specified resource.
|
void |
setStateMessage(java.lang.String message)
Sets the state message, which indicates how many cards a player has set
to discard, and how many remain to set.
|
closeModal, isModalShowing, showModalgetController, setControllervoid setDiscardButtonEnabled(boolean enabled)
enabled - Whether or not the discard button should be enabledvoid setResourceDiscardAmount(ResourceType resource, int amount)
resource - The resource for which the discard amount is being setamount - The new discard amountvoid setResourceMaxAmount(ResourceType resource, int maxAmount)
resource - The resource for which the maximum amount is being setmaxAmount - The new maximum amountvoid setResourceAmountChangeEnabled(ResourceType resource, boolean increase, boolean decrease)
resource - The resource for which amount changes are being enabled or
disabledincrease - Whether or not the amount for the specified resource can be
increaseddecrease - Whether or not the amount for the specified resource can be
decreasedvoid setStateMessage(java.lang.String message)
message - The new state message (e.g., "0/6")