public class Options
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static @NotNull java.lang.String |
DEFAULT_SKIN
The default skin name.
|
Constructor and Description |
---|
Options() |
Modifier and Type | Method and Description |
---|---|
@Nullable java.lang.String |
getDebugKeyboardFilename()
Returns the filename for keyboard debug logs.
|
@Nullable java.lang.String |
getDebugMouseFilename()
Returns the filename for mouse debug logs.
|
@Nullable java.lang.String |
getDebugProtocolFilename()
Returns the filename for Crossfire protocol debug logs.
|
@Nullable java.lang.String |
getDebugScreenFilename()
Returns the filename for screen debug logs.
|
@Nullable java.lang.String |
getDebugSoundFilename()
Returns the filename for sound debug logs.
|
float |
getFontScaleFactor()
Returns the font scale factor.
|
@Nullable Resolution |
getResolution()
Returns the resolution.
|
@Nullable java.lang.String |
getServer()
Returns the Crossfire server to connect to.
|
@NotNull 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(@NotNull java.lang.String[] args)
Parse command line arguments.
|
@NotNull public static final @NotNull java.lang.String DEFAULT_SKIN
public void parse(@NotNull @NotNull java.lang.String[] args)
args
- the command line arguments@Nullable public @Nullable java.lang.String getDebugProtocolFilename()
null
to not log Crossfire protocol
messages@Nullable public @Nullable java.lang.String getDebugKeyboardFilename()
null
to not log keyboard input@Nullable public @Nullable java.lang.String getDebugMouseFilename()
null
to not log mouse input@Nullable public @Nullable java.lang.String getDebugScreenFilename()
null
to not log screen logs@Nullable public @Nullable java.lang.String getDebugSoundFilename()
null
to not log sound logspublic boolean isDebugGui()
@Nullable public @Nullable Resolution getResolution()
null
for default@NotNull public @NotNull java.lang.String getSkin()
public int getTileSize()
public float getFontScaleFactor()
public boolean isFullScreen()
@Nullable public @Nullable java.lang.String getServer()
null
for interactive server selectionpublic boolean isAvoidCopyArea()