|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.limdul.cassiopeia.data.game.GameOption
public class GameOption
Stellt eine einzelne Spieloption da.
| Constructor Summary | |
|---|---|
GameOption(int option,
boolean botRelevant,
boolean isBoolean,
boolean defaultValue,
String key)
Erzeugt die Option. |
|
GameOption(int option,
boolean botRelevant,
boolean isBoolean,
int defaultValue,
String key)
Erzeugt die Option. |
|
| Method Summary | |
|---|---|
boolean |
getBooleanValue()
Liefert den booleschen Wert der Option. |
String |
getLocalizedName()
Liefert den lokalisierten Namen. |
String |
getOptionKey()
Liefert den Key zur Lokalisierung. |
int |
getOptionType()
Liefert den Options Identifier. |
int |
getValue()
Liefert den Integer Wert der Option. |
boolean |
isBoolean()
Ob es eine boolesche Option ist. |
boolean |
isBotRelevant()
Ob die Option beim Bot extra implementiert werden muss. |
void |
setValue(boolean value)
Setzt den Wert der Option. |
void |
setValue(int value)
Setzt den Wert der Option. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GameOption(int option,
boolean botRelevant,
boolean isBoolean,
int defaultValue,
String key)
option - Die Option, die Konstanten sind in GameOptions definiert.botRelevant - Ob die Option eine extra Implementierung beim Bot benötigt.isBoolean - Ob es sich um eine boolesche Option handelt.defaultValue - Der Start Wert.key - Der Schlüssel zur Lokalisierung.
public GameOption(int option,
boolean botRelevant,
boolean isBoolean,
boolean defaultValue,
String key)
option - Die Option, die Konstanten sind in GameOptions definiert.botRelevant - Ob die Option eine extra Implementierung beim Bot benötigt.isBoolean - Ob es sich um eine boolesche Option handelt.defaultValue - Der Start Wert.key - Der Schlüssel zur Lokalisierung.| Method Detail |
|---|
public int getOptionType()
public boolean isBoolean()
true, wenn es eine boolesche Option ist, false wenn es eine Integer Option ist.public boolean isBotRelevant()
true, wenn die Option extra implementiert werden muss, false sonst.public int getValue()
public boolean getBooleanValue()
public void setValue(int value)
value - Der Wert der Option.public void setValue(boolean value)
value - Der Wert der Option.public String getOptionKey()
public String getLocalizedName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||