Package | Description |
---|---|
net.viktorc.detroid.framework.engine | |
net.viktorc.detroid.framework.uci |
Modifier and Type | Method and Description |
---|---|
Map<Option<?>,Object> |
Detroid.getOptions() |
Modifier and Type | Method and Description |
---|---|
<T> boolean |
Detroid.setOption(Option<T> setting,
T value) |
Modifier and Type | Class and Description |
---|---|
static class |
Option.ButtonOption
A button option which only has a name and serves as a parameterless command.
|
static class |
Option.CheckOption
A check option subclassing Setting with a Boolean type parameter.
|
static class |
Option.ComboOption
A combo option with a set of allowed values subclassing Setting with a String type parameter.
|
static class |
Option.SpinOption
A spin option with minimum and maximum values subclassing Setting with an Integer type parameter.
|
static class |
Option.StringOption
A simple string option subclassing Setting with a String type parameter.
|
Modifier and Type | Method and Description |
---|---|
default <T,U extends Option<T>> |
UCIEngine.setOption(Class<U> optionType,
String optionName,
T value)
It looks for an option of the specified type and name among the options provided by the engine, and if it is found, it attempts to set
it to the specified value.
|
Modifier and Type | Method and Description |
---|---|
Map<Option<?>,Object> |
UCIEngine.getOptions()
Returns the options the engine offers and their values.
|
Modifier and Type | Method and Description |
---|---|
<T> boolean |
UCIEngine.setOption(Option<T> setting,
T value)
Sets an option defined by the engine to the specified value.
|
Copyright © 2020. All rights reserved.