Crossfire JXClient, Trunk
R20561
|
Command line argument parser. More...
Public Member Functions | |
String | getDebugKeyboardFilename () |
Returns the filename for keyboard debug logs. More... | |
String | getDebugMouseFilename () |
Returns the filename for mouse debug logs. More... | |
String | getDebugProtocolFilename () |
Returns the filename for Crossfire protocol debug logs. More... | |
String | getDebugScreenFilename () |
Returns the filename for screen debug logs. More... | |
String | getDebugSoundFilename () |
Returns the filename for sound debug logs. More... | |
Resolution | getResolution () |
Returns the resolution. More... | |
String | getServer () |
Returns the Crossfire server to connect to. More... | |
String | getSkin () |
Returns the skin name. More... | |
int | getTileSize () |
Returns the size of a tile in the map view. More... | |
boolean | isAvoidCopyArea () |
Returns whether map scrolling is done by copying pixel areas. More... | |
boolean | isDebugGui () |
Returns whether debugging of GUI elements is enabled. More... | |
boolean | isFullScreen () |
Returns whether full-screen mode should be enabled. More... | |
void | parse (@NotNull final String[] args) |
Parse command line arguments. More... | |
Static Public Attributes | |
static final String | DEFAULT_SKIN = "ragnorok" |
The default skin name. More... | |
Private Attributes | |
boolean | avoidCopyArea |
Whether map scrolling is done by copying pixel areas. More... | |
boolean | debugGui |
Enable debugging of GUI elements. More... | |
String | debugKeyboardFilename |
The filename for keyboard debug logs or. More... | |
String | debugMouseFilename |
The filename for mouse debug logs or. More... | |
String | debugProtocolFilename |
The filename for Crossfire protocol message logs or. More... | |
String | debugScreenFilename |
The filename for screen debug logs or. More... | |
String | debugSoundFilename |
The filename for sound debug logs or. More... | |
boolean | fullScreen = true |
The Settings for saving/restoring defaults. More... | |
Resolution | resolution |
The resolution to use or. More... | |
String | server |
The Crossfire server to connect to or. More... | |
String | skin |
The skin name to load or. More... | |
int | tileSize = DEFAULT_TILE_SIZE |
The size of tiles in the map view in pixels. More... | |
Static Private Attributes | |
static final int | DEFAULT_TILE_SIZE = 64 |
The default size of tiles in the map view in pixels. More... | |
Command line argument parser.
Definition at line 34 of file Options.java.
String com.realtime.crossfire.jxclient.main.Options.getDebugKeyboardFilename | ( | ) |
Returns the filename for keyboard debug logs.
Definition at line 242 of file Options.java.
References com.realtime.crossfire.jxclient.main.Options.debugKeyboardFilename.
String com.realtime.crossfire.jxclient.main.Options.getDebugMouseFilename | ( | ) |
Returns the filename for mouse debug logs.
Definition at line 251 of file Options.java.
References com.realtime.crossfire.jxclient.main.Options.debugMouseFilename.
String com.realtime.crossfire.jxclient.main.Options.getDebugProtocolFilename | ( | ) |
Returns the filename for Crossfire protocol debug logs.
Definition at line 233 of file Options.java.
References com.realtime.crossfire.jxclient.main.Options.debugProtocolFilename.
String com.realtime.crossfire.jxclient.main.Options.getDebugScreenFilename | ( | ) |
Returns the filename for screen debug logs.
Definition at line 260 of file Options.java.
References com.realtime.crossfire.jxclient.main.Options.debugScreenFilename.
String com.realtime.crossfire.jxclient.main.Options.getDebugSoundFilename | ( | ) |
Returns the filename for sound debug logs.
Definition at line 269 of file Options.java.
References com.realtime.crossfire.jxclient.main.Options.debugSoundFilename.
Resolution com.realtime.crossfire.jxclient.main.Options.getResolution | ( | ) |
Returns the resolution.
Definition at line 286 of file Options.java.
References com.realtime.crossfire.jxclient.main.Options.resolution.
String com.realtime.crossfire.jxclient.main.Options.getServer | ( | ) |
Returns the Crossfire server to connect to.
Definition at line 320 of file Options.java.
References com.realtime.crossfire.jxclient.main.Options.server.
String com.realtime.crossfire.jxclient.main.Options.getSkin | ( | ) |
Returns the skin name.
Definition at line 295 of file Options.java.
References com.realtime.crossfire.jxclient.main.Options.skin.
int com.realtime.crossfire.jxclient.main.Options.getTileSize | ( | ) |
Returns the size of a tile in the map view.
Definition at line 303 of file Options.java.
References com.realtime.crossfire.jxclient.main.Options.tileSize.
boolean com.realtime.crossfire.jxclient.main.Options.isAvoidCopyArea | ( | ) |
Returns whether map scrolling is done by copying pixel areas.
If unset, always repaint all map squares.
Definition at line 329 of file Options.java.
References com.realtime.crossfire.jxclient.main.Options.avoidCopyArea.
boolean com.realtime.crossfire.jxclient.main.Options.isDebugGui | ( | ) |
Returns whether debugging of GUI elements is enabled.
Definition at line 277 of file Options.java.
References com.realtime.crossfire.jxclient.main.Options.debugGui.
boolean com.realtime.crossfire.jxclient.main.Options.isFullScreen | ( | ) |
Returns whether full-screen mode should be enabled.
Definition at line 311 of file Options.java.
References com.realtime.crossfire.jxclient.main.Options.fullScreen.
void com.realtime.crossfire.jxclient.main.Options.parse | ( | @NotNull final String [] | args | ) |
Parse command line arguments.
args | the command line arguments |
Definition at line 129 of file Options.java.
References com.realtime.crossfire.jxclient.main.Options.DEFAULT_SKIN, and com.realtime.crossfire.jxclient.util.Resolution.parse().
Referenced by com.realtime.crossfire.jxclient.main.JXClient.main().
|
private |
Whether map scrolling is done by copying pixel areas.
If unset, always repaint all map squares.
Definition at line 123 of file Options.java.
Referenced by com.realtime.crossfire.jxclient.main.Options.isAvoidCopyArea().
|
private |
Enable debugging of GUI elements.
Definition at line 60 of file Options.java.
Referenced by com.realtime.crossfire.jxclient.main.Options.isDebugGui().
|
private |
The filename for keyboard debug logs or.
to not log keyboard input.
Definition at line 74 of file Options.java.
Referenced by com.realtime.crossfire.jxclient.main.Options.getDebugKeyboardFilename().
|
private |
The filename for mouse debug logs or.
to not log mouse input.
Definition at line 81 of file Options.java.
Referenced by com.realtime.crossfire.jxclient.main.Options.getDebugMouseFilename().
|
private |
The filename for Crossfire protocol message logs or.
to not log protocol messages.
Definition at line 67 of file Options.java.
Referenced by com.realtime.crossfire.jxclient.main.Options.getDebugProtocolFilename().
|
private |
The filename for screen debug logs or.
to not log screen logs.
Definition at line 88 of file Options.java.
Referenced by com.realtime.crossfire.jxclient.main.Options.getDebugScreenFilename().
|
private |
The filename for sound debug logs or.
to not log sound logs.
Definition at line 94 of file Options.java.
Referenced by com.realtime.crossfire.jxclient.main.Options.getDebugSoundFilename().
|
static |
The default skin name.
Definition at line 117 of file Options.java.
Referenced by com.realtime.crossfire.jxclient.main.JXCWindow.init(), and com.realtime.crossfire.jxclient.main.Options.parse().
|
staticprivate |
The default size of tiles in the map view in pixels.
Definition at line 39 of file Options.java.
|
private |
The Settings for saving/restoring defaults.
Whether full-screen mode should be enabled.
Definition at line 48 of file Options.java.
Referenced by com.realtime.crossfire.jxclient.main.Options.isFullScreen().
|
private |
The resolution to use or.
for default.
Definition at line 100 of file Options.java.
Referenced by com.realtime.crossfire.jxclient.main.Options.getResolution().
|
private |
The Crossfire server to connect to or.
to show the server selections screen.
Definition at line 55 of file Options.java.
Referenced by com.realtime.crossfire.jxclient.main.Options.getServer().
|
private |
The skin name to load or.
for the default skin.
Definition at line 106 of file Options.java.
Referenced by com.realtime.crossfire.jxclient.main.Options.getSkin().
|
private |
The size of tiles in the map view in pixels.
Definition at line 111 of file Options.java.
Referenced by com.realtime.crossfire.jxclient.main.Options.getTileSize().