Class WorldConfig

java.lang.Object
za.co.wethinkcode.robots.server.config.WorldConfig

public class WorldConfig extends Object
  • Field Details

    • MINIMUM_MAZE_SIZE

      public static int MINIMUM_MAZE_SIZE
      The minimum size of a maze in the world.
    • defaultIpAddress

      public static final String 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

      public List<Position> getCustomObstacles()
    • getObstacleCount

      public int getObstacleCount()
    • getIpAddress

      public String getIpAddress()
    • setPort

      public void setPort(int port)
    • setWorldSize

      public void setWorldSize(int worldSize)
    • setMazeType

      public void setMazeType(int mazeType)
    • setIpAddress

      public void setIpAddress(String ipAddress)
    • resolveIpAddress

      public String resolveIpAddress(String commandLineIpAddress)
    • getMaxShots

      public int getMaxShots()
    • applyCommandLineOverrides

      public boolean applyCommandLineOverrides(ServerOptions options)
      CLI values override config.json only when the operator provides them.