Class Options

java.lang.Object
com.realtime.crossfire.jxclient.main.Options

public class Options extends Object
Command line argument parser.
  • Field Details

  • Constructor Details

    • Options

      public Options()
  • Method Details

    • parse

      public void parse(@NotNull @NotNull String @NotNull [] args)
      Parse command line arguments.
      Parameters:
      args - the command line arguments
    • getDebugProtocolFilename

      @Nullable public @Nullable String getDebugProtocolFilename()
      Returns the filename for Crossfire protocol debug logs.
      Returns:
      the filename or null to not log Crossfire protocol messages
    • getDebugKeyboardFilename

      @Nullable public @Nullable String getDebugKeyboardFilename()
      Returns the filename for keyboard debug logs.
      Returns:
      the filename or null to not log keyboard input
    • getDebugMouseFilename

      @Nullable public @Nullable String getDebugMouseFilename()
      Returns the filename for mouse debug logs.
      Returns:
      the filename or null to not log mouse input
    • getDebugScreenFilename

      @Nullable public @Nullable String getDebugScreenFilename()
      Returns the filename for screen debug logs.
      Returns:
      the filename or null to not log screen logs
    • getDebugSoundFilename

      @Nullable public @Nullable String getDebugSoundFilename()
      Returns the filename for sound debug logs.
      Returns:
      the filename or null to not log sound logs
    • isDebugGui

      public boolean isDebugGui()
      Returns whether debugging of GUI elements is enabled.
      Returns:
      whether debugging of GUI elements is enabled
    • getResolution

      @Nullable public @Nullable Resolution getResolution()
      Returns the resolution.
      Returns:
      the resolution or null for default
    • getSkin

      @NotNull public @NotNull String getSkin()
      Returns the skin name.
      Returns:
      the skin name
    • getTileSize

      public int getTileSize()
      Returns the size of a tile in the map view.
      Returns:
      the tile size in pixels
    • getFontScaleFactor

      public float getFontScaleFactor()
      Returns the font scale factor.
      Returns:
      the factor
    • isFullScreen

      public boolean isFullScreen()
      Returns whether full-screen mode should be enabled.
      Returns:
      whether full-screen mode should be enabled
    • getServer

      @Nullable public @Nullable String getServer()
      Returns the Crossfire server to connect to.
      Returns:
      the server or null for interactive server selection
    • isAvoidCopyArea

      public boolean isAvoidCopyArea()
      Returns whether map scrolling is done by copying pixel areas. If unset, always repaint all map squares.
      Returns:
      whether copying pixel areas is disallowed