|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gjt.universe.GameOptions
This class implements an object which contains the game options which may be set by the creating civ.
Field Summary | |
private float[] |
accrete_distribution
|
private java.util.Vector |
civOptionsList
|
private boolean |
gameLoaded
|
private GameScale |
gameScale
|
private java.lang.String |
internal_FileName
|
private int |
internal_scheme
|
private boolean |
internal_shouldCreateNewUniverse
|
private java.lang.String |
internal_TechnologyFileName
|
private int |
internal_theme
|
private SchemeBase |
scheme_object
|
private int |
theme_version
|
private float |
wormhole_oscillation_probability
|
private float |
wormhole_probability
|
private float |
wormhole_stability_probability
|
Constructor Summary | |
GameOptions()
The designated constructor for this class. |
Method Summary | |
void |
addCivilization(CivOptions newValue)
Adds a starting civilization described in the given options object to those that will be in the game. |
void |
FileName(java.lang.String str)
|
float[] |
getAccreteHistogram()
|
int |
getCivilizationCount()
Returns the number of starting civlizations in the game. |
java.util.Vector |
getCivilizations()
Returns the list of CivOptions objects for the starting civilizations in the game. |
java.lang.String |
getFileName()
|
GameScale |
getGameScale()
This method returns the game scale value contained in the game options. |
int |
getScheme()
|
SchemeBase |
getSchemeObject()
|
java.lang.String |
getSchemeString()
|
boolean |
getShouldCreateNewUniverse()
|
java.lang.String |
getTechnologyFileName()
|
int |
getTheme()
|
java.lang.String |
getThemeString()
|
int |
getThemeVersion()
|
float |
getWormholeOscillationProbability()
This method returns the probability (0.0 to 1.0) that a naturally occuring wormhole will be oscillating. |
float |
getWormholeProbability()
This method returns the average probability (0.0 to 1.0) that a naturally occuring wormhole will be present in a star system at the start of a game. |
float |
getWormholeStabilityProbability()
This method returns the probability (0.0 to 1.0) that a naturally occuring wormhole is stable. |
boolean |
isLoadGame()
|
void |
loadGame()
|
void |
resetCivilizations()
This method resets the list of starting civilizations to be empty. |
void |
saveToConfig()
This method causes the game options object to persistently save its current values to the game configuration file so that they will be used the next time the game is run. |
void |
setAccreteHistogram(float[] values)
|
void |
setGameScale(GameScale gs)
This method sets the game scale value to be contained in the game options. |
void |
setScheme(int scheme)
This method sets the scheme which should be used in the game. |
void |
setShouldCreateNewUniverse(boolean bool_in)
|
void |
setTheme(int theme)
|
void |
setThemeVersion(int version)
|
void |
setWormholeOscillationProbability(float newValue)
This method sets the probability (0.0 to 1.0) that a naturally occuring wormhole will be oscillating. |
void |
setWormholeProbability(float newValue)
This method sets the average probability (0.0 to 1.0) that a naturally occuring wormhole will be present in a star system at the start of a game. |
void |
setWormholeStabilityProbability(float newValue)
This method sets the probability (0.0 to 1.0) that a naturally occuring wormhole is stable. |
void |
TechnologyFileName(java.lang.String str)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private boolean gameLoaded
private java.util.Vector civOptionsList
private boolean internal_shouldCreateNewUniverse
private GameScale gameScale
private java.lang.String internal_FileName
private java.lang.String internal_TechnologyFileName
private int internal_scheme
private int internal_theme
private int theme_version
private SchemeBase scheme_object
private float[] accrete_distribution
private float wormhole_probability
private float wormhole_stability_probability
private float wormhole_oscillation_probability
Constructor Detail |
public GameOptions()
Method Detail |
public void saveToConfig()
public void loadGame()
public boolean isLoadGame()
public void resetCivilizations()
addCivilization( CivOptions newValue )
public void addCivilization(CivOptions newValue)
newValue
- The object describing the civilization's attributes.resetCivilizations()
,
getCivilizations()
public java.util.Vector getCivilizations()
addCivilization( CivOptions newValue )
,
setScheme( int Scheme )
public int getCivilizationCount()
public void setShouldCreateNewUniverse(boolean bool_in)
public boolean getShouldCreateNewUniverse()
public GameScale getGameScale()
public void setGameScale(GameScale gs)
public void FileName(java.lang.String str)
public java.lang.String getFileName()
public void TechnologyFileName(java.lang.String str)
public java.lang.String getTechnologyFileName()
public void setScheme(int scheme)
scheme
- The unique ID number of the scheme to be used.public int getScheme()
public java.lang.String getSchemeString()
public SchemeBase getSchemeObject()
public void setTheme(int theme)
public int getTheme()
public java.lang.String getThemeString()
public void setThemeVersion(int version)
public int getThemeVersion()
public void setAccreteHistogram(float[] values)
public float[] getAccreteHistogram()
public void setWormholeProbability(float newValue)
newValue
- The new probability value.public float getWormholeProbability()
public void setWormholeStabilityProbability(float newValue)
newValue
- The new probability value.public float getWormholeStabilityProbability()
public void setWormholeOscillationProbability(float newValue)
newValue
- The new probability value.public float getWormholeOscillationProbability()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |