public interface IConfigurationControl
Modifier and Type | Method and Description |
---|---|
boolean |
checkConfiguration()
This method checks if the Configuration is allowable
|
void |
createDefaultConfiguration()
This method creates a default configuration
|
void |
loadConfiguration()
This method loads a Configuration
|
void |
saveConfigToFile()
This method checks the configuration and saves it to a newly choosen file
|
void |
saveConfigToLoadedFile()
This method checks the configuration and saves it to the file the last configuration was loaded from.
|
void |
setBlockedPositions(ArrayList<de.smarten.tsuro.shared.gamemodel.Position> blockedPositions) |
void |
setBoardLength(int length)
This method sets the length of the board.
|
void |
setRoundTimeAI(int time)
This method sets the roundtime of the AI
|
void |
setTileList(ArrayList<Integer> tileList)
This method sets a TileList
|
void createDefaultConfiguration()
void loadConfiguration() throws IOException
IOException
- if an I/O error occurs loading the fileboolean checkConfiguration() throws ConfigurationInvalidException
ConfigurationInvalidException
- if at least one of the parameters of the configuration is invalidvoid setBoardLength(int length)
length
- is the size the board should havevoid setTileList(ArrayList<Integer> tileList)
tileList
- Tiles for the Playervoid setRoundTimeAI(int time)
time
- time for the AI to take its turnvoid setBlockedPositions(ArrayList<de.smarten.tsuro.shared.gamemodel.Position> blockedPositions)
void saveConfigToFile() throws IOException, ConfigurationInvalidException
IOException
- if an I/O error occurs writing to or creating a fileConfigurationInvalidException
- if one of the parameters of the configuration is invalidvoid saveConfigToLoadedFile() throws IOException, ConfigurationInvalidException
IOException
- if an I/O error occurs writing to or creating a fileConfigurationInvalidException
- if one of the parameters of the configuration is invalidCopyright © 2017 smarTen. All rights reserved.