public class GuiControl extends Object implements IGUIControl
Constructor and Description |
---|
GuiControl(GUI gui) |
Modifier and Type | Method and Description |
---|---|
void |
createConfigurationClicked()
Tells the configuration control to create a default configuration.
|
ConfigurationControl |
getConfigControl() |
GUI |
getGui() |
String |
loadConfiguration()
Never call this method explicitly, it gets called by the config control.
|
void |
loadConfigurationClicked()
Tells the configuration control to load a configuration.
|
void |
saveClicked()
Tells the configuration control to save a configuration.
|
void |
saveConfigToFileClicked()
Tells the configuration control to save a configuration to the loaded position.
|
void |
setBlockedPositions(ArrayList<de.smarten.tsuro.shared.gamemodel.Position> blockedPositions) |
void |
setBoardLength(int length) |
void |
setPlayerCount(int count) |
void |
setPresentationTime(int time) |
void |
setRoundTimeAI(int time) |
void |
setRoundTimePlayer(int time) |
void |
setTileTable(ArrayList<Integer> playerTiles) |
void |
storeConfiguration(String config)
Never call this method explicitly, it gets called by the config control.
|
public GuiControl(GUI gui)
public void createConfigurationClicked()
IGUIControl
createConfigurationClicked
in interface IGUIControl
public void setBoardLength(int length)
setBoardLength
in interface IGUIControl
public void setTileTable(ArrayList<Integer> playerTiles)
setTileTable
in interface IGUIControl
public void setRoundTimeAI(int time)
setRoundTimeAI
in interface IGUIControl
public void setBlockedPositions(ArrayList<de.smarten.tsuro.shared.gamemodel.Position> blockedPositions)
setBlockedPositions
in interface IGUIControl
public void setRoundTimePlayer(int time)
setRoundTimePlayer
in interface IGUIControl
public void setPlayerCount(int count)
public void setPresentationTime(int time)
public GUI getGui()
public ConfigurationControl getConfigControl()
public void loadConfigurationClicked()
IGUIControl
loadConfigurationClicked
in interface IGUIControl
public void saveClicked()
IGUIControl
saveClicked
in interface IGUIControl
public void saveConfigToFileClicked()
IGUIControl
saveConfigToFileClicked
in interface IGUIControl
public String loadConfiguration()
public void storeConfiguration(String config)
config
- the name of the configurationCopyright © 2017 smarTen. All rights reserved.