public class ConsoleSettings
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ConsoleSettings.KeyStroke
Represents the keys that must be pressed to summon the console.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommandSeparator()
Returns what character sequence the player must separate multiple
commands with.
|
ConsoleSettings.KeyStroke |
getConsoleSummonKey()
Returns the key (and any modifier keys) that must be pressed to summon
the console.
|
int |
getMaxOutputLineLength()
Returns how many characters a line of output can reach before it is
wrapped.
|
java.awt.Color |
getOutputColor()
Returns the
Color of the console's output. |
boolean |
getShouldShowCursorIndex()
Returns whether the campaign pop-up shows the current index (for input
debugging purposes).
|
boolean |
getShouldShowEnteredCommands()
Returns whether each valid individual command should be displayed before
being run.
|
boolean |
getShouldShowExceptionStackTraces()
Returns whether
Console.showException(java.lang.String, java.lang.Throwable)
shows the full exception trace. |
java.lang.String |
getSoundForResult(BaseCommand.CommandResult result)
Returns what sound will be played when a command returns a specific
result.
|
double |
getTypoCorrectionThreshold()
Returns the threshold for similarity between two strings before one is
considered a typo of the other.
|
java.lang.String |
toString() |
public ConsoleSettings.KeyStroke getConsoleSummonKey()
ConsoleSettings.KeyStroke
to summon the console.
public java.lang.String getCommandSeparator()
String
(usually a single character) that separates
multiple commands.
public boolean getShouldShowEnteredCommands()
true
if each command should be displayed to the player
before executing, false
otherwise.
public boolean getShouldShowCursorIndex()
true
if the campaign popup shows the cursor index,
false
otherwise.
public boolean getShouldShowExceptionStackTraces()
Console.showException(java.lang.String, java.lang.Throwable)
shows the full exception trace.
true
if full exception stack traces are shown with
Console.showException(java.lang.String, java.lang.Throwable)
, false
otherwise.
public double getTypoCorrectionThreshold()
String
s must be for typo correction to
consider them a match.
public java.awt.Color getOutputColor()
Color
of the console's output.
Color
of the console's output.
public int getMaxOutputLineLength()
public java.lang.String getSoundForResult(BaseCommand.CommandResult result)
result
- The BaseCommand.CommandResult
to get the sound for.
BaseCommand.CommandResult
, or null
if no sound is set up for
that result.
public java.lang.String toString()
toString
in class java.lang.Object