Class WorldConfig
java.lang.Object
za.co.wethinkcode.robots.server.config.WorldConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic intThe minimum size of a maze in the world. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplyCommandLineOverrides(ServerOptions options) CLI values override config.json only when the operator provides them.intintintintintgetPort()intintintintresolveIpAddress(String commandLineIpAddress) voidsetIpAddress(String ipAddress) voidsetMazeType(int mazeType) voidsetPort(int port) voidsetWorldSize(int worldSize)
-
Field Details
-
MINIMUM_MAZE_SIZE
public static int MINIMUM_MAZE_SIZEThe minimum size of a maze in the world. -
defaultIpAddress
- See Also:
-
-
Constructor Details
-
WorldConfig
public WorldConfig()
-
-
Method Details
-
getPort
public int getPort() -
getWorldSize
public int getWorldSize() -
getMazeType
public int getMazeType() -
getRepairTime
public int getRepairTime() -
getReloadTime
public int getReloadTime() -
getVisibility
public int getVisibility() -
getMaxShields
public int getMaxShields() -
getCustomObstacles
-
getObstacleCount
public int getObstacleCount() -
getIpAddress
-
setPort
public void setPort(int port) -
setWorldSize
public void setWorldSize(int worldSize) -
setMazeType
public void setMazeType(int mazeType) -
setIpAddress
-
resolveIpAddress
-
getMaxShots
public int getMaxShots() -
applyCommandLineOverrides
CLI values override config.json only when the operator provides them.
-