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 String
Returns the filename for keyboard debug logs.@Nullable String
Returns the filename for mouse debug logs.@Nullable String
Returns the filename for Crossfire protocol debug logs.@Nullable String
Returns the filename for screen debug logs.@Nullable String
Returns the filename for sound debug logs.float
Returns the font scale factor.@Nullable Resolution
Returns the resolution.@Nullable String
Returns the Crossfire server to connect to.@NotNull String
getSkin()
Returns the skin name.int
Returns the size of a tile in the map view.boolean
Returns whether map scrolling is done by copying pixel areas.boolean
Returns whether debugging of GUI elements is enabled.boolean
Returns whether full-screen mode should be enabled.void
Parse 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
null
to not log Crossfire protocol messages
-
getDebugKeyboardFilename
Returns the filename for keyboard debug logs.- Returns:
- the filename or
null
to not log keyboard input
-
getDebugMouseFilename
Returns the filename for mouse debug logs.- Returns:
- the filename or
null
to not log mouse input
-
getDebugScreenFilename
Returns the filename for screen debug logs.- Returns:
- the filename or
null
to not log screen logs
-
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
Returns the resolution.- Returns:
- the resolution or
null
for 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
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
-