public interface IDomesticTradeOverlay extends IOverlayView
Modifier and Type | Method and Description |
---|---|
void |
reset()
Resets the view to its initial state.
|
void |
setCancelEnabled(boolean enabled)
Enables or disables the cancel button.
|
void |
setPlayers(PlayerInfo[] value)
Sets the opponents the local player may trade with.
|
void |
setPlayerSelectionEnabled(boolean enable)
Enables or disables the ability to select a player to trade with.
|
void |
setResourceAmount(ResourceType resource,
java.lang.String amount)
Sets the amount displayed for a resource.
|
void |
setResourceAmountChangeEnabled(ResourceType resource,
boolean canIncrease,
boolean canDecrease)
Enables or disables the ability to increase and decrease a resource's
amount.
|
void |
setResourceSelectionEnabled(boolean enable)
Enables or disables the ability to select resources to trade.
|
void |
setStateMessage(java.lang.String message)
Sets the message on the button indicating the state of the trade.
|
void |
setTradeEnabled(boolean enable)
Enables or disables the trade button.
|
closeModal, isModalShowing, showModal
getController, setController
void reset()
void setPlayers(PlayerInfo[] value)
value
- Information about the players that can be traded withvoid setPlayerSelectionEnabled(boolean enable)
enable
- Whether or not player selection is currently allowedvoid setResourceAmount(ResourceType resource, java.lang.String amount)
resource
- The resource for which the amount is being setamount
- The string to be displayed as the resource's amount (can be
empty)void setResourceAmountChangeEnabled(ResourceType resource, boolean canIncrease, boolean canDecrease)
resource
- The resource for which amount changing is being enabled or
disabledcanIncrease
- Whether or not the resource's amount may be increasedcanDecrease
- Whether or not the resource's amount may be decreasedvoid setResourceSelectionEnabled(boolean enable)
enable
- Whether or not the user can select resources to tradevoid setStateMessage(java.lang.String message)
message
- The new state messagevoid setTradeEnabled(boolean enable)
enable
- Whether or not the user may currently execute the tradevoid setCancelEnabled(boolean enabled)
enabled
- Whether or not the user may cancel the trade operation