Class Options
java.lang.Object
com.realtime.crossfire.jxclient.main.Options
Command line argument parser.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the filename for keyboard debug logs.@Nullable StringReturns the filename for mouse debug logs.@Nullable StringReturns the filename for Crossfire protocol debug logs.@Nullable StringReturns the filename for screen debug logs.@Nullable StringReturns the filename for sound debug logs.floatReturns the font scale factor.@Nullable ResolutionReturns the resolution.@Nullable StringReturns the Crossfire server to connect to.@NotNull StringgetSkin()Returns the skin name.intReturns the size of a tile in the map view.booleanReturns whether map scrolling is done by copying pixel areas.booleanReturns whether debugging of GUI elements is enabled.booleanReturns whether full-screen mode should be enabled.voidParse command line arguments.
-
Field Details
-
DEFAULT_SKIN
The default skin name.- See Also:
-
-
Constructor Details
-
Options
public Options()
-
-
Method Details
-
parse
Parse command line arguments.- Parameters:
args- the command line arguments
-
getDebugProtocolFilename
Returns the filename for Crossfire protocol debug logs.- Returns:
- the filename or
nullto not log Crossfire protocol messages
-
getDebugKeyboardFilename
Returns the filename for keyboard debug logs.- Returns:
- the filename or
nullto not log keyboard input
-
getDebugMouseFilename
Returns the filename for mouse debug logs.- Returns:
- the filename or
nullto not log mouse input
-
getDebugScreenFilename
Returns the filename for screen debug logs.- Returns:
- the filename or
nullto not log screen logs
-
getDebugSoundFilename
Returns the filename for sound debug logs.- Returns:
- the filename or
nullto 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
Returns the resolution.- Returns:
- the resolution or
nullfor default
-
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
Returns the Crossfire server to connect to.- Returns:
- the server or
nullfor 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
-