|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.limdul.cassiopeia.data.game.GameOptions
public class GameOptions
Speichert die Spieloptionen. Sollte den Umfang der Klasse erheblich reduzieren.
| Field Summary | |
|---|---|
static int |
BIG_FIGURES
Große Figuren Option |
static int |
BUILDER_FIGURES
Baumeisterfiguren Option |
static int |
CASTLE_MISS
Burgfräulein |
static int |
CATHEDRAL
Kathedralen Option |
static int |
DRAGON
Drachen Option |
static int |
DRAGON_FIGURES
Drachenfiguren Option |
static int |
ENCHANTED_TUNNEL
Zaubergang Option |
static int |
FAIRY
Fee Option |
static int |
FAIRY_AREA_POINTS
Extra Punkte für Gebiete bei der Fee Option |
static int |
FAIRY_DRAGON_PROTECT
Drachenschutz durch Fee Option |
static int |
FAIRY_EXTRA_POINT
Extra Punkt bei Fee Option |
static int |
GAP_CLOSE
Lückenschliessen Option |
static int |
GAP_CLOSE_POINTS
Punkte für das Lückenschliessen Option |
static int |
GOODS
Waren Option |
static int |
KATHARER
Katharer Option |
static int |
KING
König Option |
static int |
MAX_PLAYER
Maximale Spieleranzahl |
static int |
NORMAL_FIGURES
Normal Figuren Option |
static int |
PASSWORD
Passwort Option |
static int |
PIG_FIGURES
Schweinfiguren Option |
static int |
PIG_HEARD
Schweine Herde Option |
static int |
RIVER
Fluss Option |
static int |
RIVER_2
Fluss 2 Option. |
static int |
ROBBERKNIGHT
Raubritter Option |
static int |
SMALL_TOWN
Kleinstadt Option |
static int |
SPECTATORS
Zuschauer Option |
static int |
TAVERN
Tavernen Option |
| Constructor Summary | |
|---|---|
GameOptions()
Erzeugt ein neues GameOptions Objekt. |
|
| Method Summary | |
|---|---|
void |
addCardSet(CardSet toAddSet)
Fügt ein Kartenset hinzu. |
void |
enableAll()
AKtiviert alle Optionen. |
boolean |
getBoolOption(int type)
Liefert eine boolsche Option. |
CardSet |
getCardSet()
Liefert das Kartenset. |
CardSetList |
getExtraSetList()
Liefert die Liste der zusätzlichen Sets als Sets. |
StringList |
getExtraSets()
Liefert die Liste der zusätzlichen Sets. |
static String |
getLocalizedName(int option)
Liefert den lokalisierten Namen der Option. |
int |
getOption(int type)
Liefert den Wert einer Option. |
static String |
getOptionKey(int option)
Liefert den Schlüssel der Option, mit dem diese lokalisiert wird. |
static GameOptionList |
getOptionList()
Liefert die Liste der möglichen Spieloptionen mit ihren Defaultwerten. |
static IntegerList |
getOptionsList()
Liefert die Liste alle möglichen Optionen. |
String |
getRawStartSetDescription()
Liefert die Beschreibung des Startsets. |
int |
getStartSetCount()
Liefert die Anzahl der Karten im Startset. |
String |
getStartSetDescription()
Liefert die Beschreibung des Startsets. |
String |
getStartSetHashKey()
Liefert den HashKey des Startsets. |
static boolean |
isBooleanOption(int option)
Liefert, ob es sich bei der Option um eine boolsche Option handelt. |
boolean |
isValid()
Testet, ob die Optionen gültig sind. |
void |
setCardSet(CardSet cardSet)
Setzt das Startkartenset. |
void |
setOption(int type,
boolean value)
Setzt eine Option. |
void |
setOption(int type,
int value)
Setzt eine Option. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CATHEDRAL
public static final int TAVERN
public static final int GOODS
public static final int KING
public static final int ROBBERKNIGHT
public static final int RIVER
public static final int CASTLE_MISS
public static final int FAIRY
public static final int FAIRY_EXTRA_POINT
public static final int FAIRY_AREA_POINTS
public static final int FAIRY_DRAGON_PROTECT
public static final int DRAGON
public static final int ENCHANTED_TUNNEL
public static final int SMALL_TOWN
public static final int GAP_CLOSE
public static final int GAP_CLOSE_POINTS
public static final int NORMAL_FIGURES
public static final int BIG_FIGURES
public static final int PIG_FIGURES
public static final int BUILDER_FIGURES
public static final int DRAGON_FIGURES
public static final int KATHARER
public static final int PIG_HEARD
public static final int RIVER_2
public static final int SPECTATORS
public static final int PASSWORD
public static final int MAX_PLAYER
| Constructor Detail |
|---|
public GameOptions()
| Method Detail |
|---|
public CardSet getCardSet()
public void setCardSet(CardSet cardSet)
cardSet - public void addCardSet(CardSet toAddSet)
toAddSet - Das hinzuzufügende Set.public String getRawStartSetDescription()
public String getStartSetDescription()
public String getStartSetHashKey()
public StringList getExtraSets()
public CardSetList getExtraSetList()
public int getStartSetCount()
public void setOption(int type,
boolean value)
type - Der Typ der Option.value - Der entsprechende Wert.
public void setOption(int type,
int value)
type - Der Typ der Option.value - Der entsprechende Wert.public boolean getBoolOption(int type)
type - Der Typ.
public int getOption(int type)
type - Die Option.
public static String getLocalizedName(int option)
option - Die Option.
public static String getOptionKey(int option)
option - Die Option.
public static boolean isBooleanOption(int option)
option - Die Option.
true, wenn es sich um eine boolsche Option handelt, false sonst.public void enableAll()
public boolean isValid()
true, wenn sie gültig sind, false sonst.public static final IntegerList getOptionsList()
public static final GameOptionList getOptionList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||