Class Options
- java.lang.Object
-
- com.realtime.crossfire.jxclient.main.Options
-
public class Options extends java.lang.ObjectCommand line argument parser.
-
-
Field Summary
Fields Modifier and Type Field Description static @NotNull java.lang.StringDEFAULT_SKINThe default skin name.
-
Constructor Summary
Constructors Constructor Description Options()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.lang.StringgetDebugKeyboardFilename()Returns the filename for keyboard debug logs.@Nullable java.lang.StringgetDebugMouseFilename()Returns the filename for mouse debug logs.@Nullable java.lang.StringgetDebugProtocolFilename()Returns the filename for Crossfire protocol debug logs.@Nullable java.lang.StringgetDebugScreenFilename()Returns the filename for screen debug logs.@Nullable java.lang.StringgetDebugSoundFilename()Returns the filename for sound debug logs.@Nullable ResolutiongetResolution()Returns the resolution.@Nullable java.lang.StringgetServer()Returns the Crossfire server to connect to.@NotNull java.lang.StringgetSkin()Returns the skin name.intgetTileSize()Returns the size of a tile in the map view.booleanisAvoidCopyArea()Returns whether map scrolling is done by copying pixel areas.booleanisDebugGui()Returns whether debugging of GUI elements is enabled.booleanisFullScreen()Returns whether full-screen mode should be enabled.voidparse(@NotNull java.lang.String @NotNull [] args)Parse command line arguments.
-
-
-
Field Detail
-
DEFAULT_SKIN
@NotNull public static final @NotNull java.lang.String DEFAULT_SKIN
The default skin name.- See Also:
- Constant Field Values
-
-
Method Detail
-
parse
public void parse(@NotNull @NotNull java.lang.String @NotNull [] args)Parse command line arguments.- Parameters:
args- the command line arguments
-
getDebugProtocolFilename
@Nullable public @Nullable java.lang.String getDebugProtocolFilename()
Returns the filename for Crossfire protocol debug logs.- Returns:
- the filename or
nullto not log Crossfire protocol messages
-
getDebugKeyboardFilename
@Nullable public @Nullable java.lang.String getDebugKeyboardFilename()
Returns the filename for keyboard debug logs.- Returns:
- the filename or
nullto not log keyboard input
-
getDebugMouseFilename
@Nullable public @Nullable java.lang.String getDebugMouseFilename()
Returns the filename for mouse debug logs.- Returns:
- the filename or
nullto not log mouse input
-
getDebugScreenFilename
@Nullable public @Nullable java.lang.String getDebugScreenFilename()
Returns the filename for screen debug logs.- Returns:
- the filename or
nullto not log screen logs
-
getDebugSoundFilename
@Nullable public @Nullable java.lang.String 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
@Nullable public @Nullable Resolution getResolution()
Returns the resolution.- Returns:
- the resolution or
nullfor default
-
getSkin
@NotNull public @NotNull java.lang.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
-
isFullScreen
public boolean isFullScreen()
Returns whether full-screen mode should be enabled.- Returns:
- whether full-screen mode should be enabled
-
getServer
@Nullable public @Nullable java.lang.String 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
-
-