public class Options
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
avoidCopyArea
Whether map scrolling is done by copying pixel areas.
|
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 |
debugMouseFilename
The filename for mouse debug logs or
null to not log mouse
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 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 and Description |
---|
Options() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDebugKeyboardFilename()
Returns the filename for keyboard debug logs.
|
java.lang.String |
getDebugMouseFilename()
Returns the filename for mouse 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.
|
java.lang.String |
getSkin()
Returns the skin name.
|
int |
getTileSize()
Returns the size of a tile in the map view.
|
boolean |
isAvoidCopyArea()
Returns whether map scrolling is done by copying pixel areas.
|
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.
|
private boolean avoidCopyArea
private boolean debugGui
@Nullable private java.lang.String debugKeyboardFilename
null
to not log keyboard
input.@Nullable private java.lang.String debugMouseFilename
null
to not log mouse
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 java.lang.String skin
null
for the default skin.private int tileSize
@Nullable public java.lang.String getDebugKeyboardFilename()
null
to not log keyboard input@Nullable public java.lang.String getDebugMouseFilename()
null
to not log mouse 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@Nullable public java.lang.String getSkin()
null
for the default skinpublic int getTileSize()
public boolean isAvoidCopyArea()
public boolean isDebugGui()
public boolean isFullScreen()
public void parse(@NotNull java.lang.String[] args)
args
- the command line arguments