public interface IAcceptTradeOverlay extends IOverlayView
| Modifier and Type | Method and Description |
|---|---|
void |
addGetResource(ResourceType resource,
int amount)
Adds a resource that the player will receive to the view.
|
void |
addGiveResource(ResourceType resource,
int amount)
Adds a resource that the player will give to the view.
|
void |
reset()
Resets the overlay back to the original settings.
|
void |
setAcceptEnabled(boolean enable)
Enables or disables the accept button
|
void |
setPlayerName(java.lang.String name)
Sets the name of the player offering the trade.
|
closeModal, isModalShowing, showModalgetController, setControllervoid addGetResource(ResourceType resource, int amount)
resource - The resource being receivedamount - The amount of the resource being receivedvoid addGiveResource(ResourceType resource, int amount)
resource - The resource being givenamount - The amount of the resource being givenvoid setAcceptEnabled(boolean enable)
enable - Whether or not the accept button is enabledvoid setPlayerName(java.lang.String name)
name - The offering player's namevoid reset()