java.lang.Object com.realtime.crossfire.jxclient.main.Options
public class Options
Command line argument parser.
Field Summary | |
---|---|
private boolean |
debugGui
Enable debugging of GUI elements. |
private java.lang.String |
debugKeyboardFilename
The filename for keyboard debug logs or null to not log
keyboard input. |
private java.lang.String |
debugProtocolFilename
The filename for Crossfire protocol message logs or null to
not log protocol messages. |
private java.lang.String |
debugScreenFilename
The filename for screen debug logs or null to not log screen
logs. |
private java.lang.String |
debugSoundFilename
The filename for sound debug logs or null to not log sound
logs. |
static java.lang.String |
DEFAULT_SKIN
The default skin name. |
private static int |
DEFAULT_TILE_SIZE
The default size of tiles in the map view in pixels. |
private boolean |
fullScreen
Whether full-screen mode should be enabled. |
private Resolution |
resolution
The resolution to use or null for default. |
private java.lang.String |
server
The Crossfire server to connect to or null to show the
server selections screen. |
private Settings |
settings
The Settings for saving/restoring defaults. |
private java.lang.String |
skin
The skin name to load or null for the default skin. |
private int |
tileSize
The size of tiles in the map view in pixels. |
Constructor Summary | |
---|---|
Options()
|
Method Summary | |
---|---|
java.lang.String |
getDebugKeyboardFilename()
Returns the filename for keyboard debug logs. |
java.lang.String |
getDebugProtocolFilename()
Returns the filename for Crossfire protocol debug logs. |
java.lang.String |
getDebugScreenFilename()
Returns the filename for screen debug logs. |
java.lang.String |
getDebugSoundFilename()
Returns the filename for sound debug logs. |
Resolution |
getResolution()
Returns the resolution. |
java.lang.String |
getServer()
Returns the Crossfire server to connect to. |
Settings |
getSettings()
Returns the Settings for restoring/saving settings. |
java.lang.String |
getSkin()
Returns the skin name. |
int |
getTileSize()
Returns the size of a tile in the map view. |
boolean |
isDebugGui()
Returns whether debugging of GUI elements is enabled. |
boolean |
isFullScreen()
Returns whether full-screen mode should be enabled. |
void |
parse(java.lang.String[] args)
Parse command line arguments. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean debugGui
@Nullable private java.lang.String debugKeyboardFilename
null
to not log
keyboard input.
@Nullable private java.lang.String debugProtocolFilename
null
to
not log protocol messages.
@Nullable private java.lang.String debugScreenFilename
null
to not log screen
logs.
@Nullable private java.lang.String debugSoundFilename
null
to not log sound
logs.
@NotNull public static final java.lang.String DEFAULT_SKIN
private static final int DEFAULT_TILE_SIZE
private boolean fullScreen
@Nullable private Resolution resolution
null
for default.
@Nullable private java.lang.String server
null
to show the
server selections screen.
@Nullable private Settings settings
Settings
for saving/restoring defaults.
@Nullable private java.lang.String skin
null
for the default skin.
private int tileSize
Constructor Detail |
---|
public Options()
Method Detail |
---|
@Nullable public java.lang.String getDebugKeyboardFilename()
null
to not log keyboard input@Nullable public java.lang.String getDebugProtocolFilename()
null
to not log Crossfire protocol
messages@Nullable public java.lang.String getDebugScreenFilename()
null
to not log screen logs@Nullable public java.lang.String getDebugSoundFilename()
null
to not log sound logs@Nullable public Resolution getResolution()
null
for default@Nullable public java.lang.String getServer()
null
for interactive server selection@NotNull public Settings getSettings()
Settings
for restoring/saving settings.
@Nullable public java.lang.String getSkin()
null
for the default skinpublic int getTileSize()
public boolean isDebugGui()
public boolean isFullScreen()
public void parse(@NotNull java.lang.String[] args) throws java.io.IOException
args
- the command line arguments
java.io.IOException
- if an I/O error occurs