Class ClientConfiguration
java.lang.Object
de.gurkenlabs.litiengine.configuration.ConfigurationGroup
de.gurkenlabs.litiengine.configuration.ClientConfiguration
The client configuration contains client specific configuration elements.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.gurkenlabs.litiengine.configuration.ConfigurationGroup
ConfigurationGroup.ConfigurationChangedListener -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the application exits on error.Gets the country code.Gets the language code.Gets the locale based on the language and country codes.intGets the maximum frames per second.voidsetCountry(String country) Sets the country code.voidsetExitOnError(boolean exit) Sets whether to exit on error.voidsetLanguage(String language) Sets the language code.voidsetMaxFps(int maxFps) Sets the maximum frames per second.voidsetShowGameMetrics(boolean showGameMetrics) Sets whether to show game metrics.booleanChecks if game metrics are shown.Methods inherited from class de.gurkenlabs.litiengine.configuration.ConfigurationGroup
getPrefix, initializeByProperty, isDebug, onChanged, removeListener, set, setDebug, storeProperties
-
Method Details
-
getCountry
-
getLanguage
-
getLocale
Gets the locale based on the language and country codes.- Returns:
- the locale.
-
getMaxFps
public int getMaxFps()Gets the maximum frames per second.- Returns:
- the maximum frames per second.
-
setCountry
Sets the country code.- Parameters:
country- the country code to set.
-
setLanguage
Sets the language code.- Parameters:
language- the language code to set.
-
setMaxFps
public void setMaxFps(int maxFps) Sets the maximum frames per second.- Parameters:
maxFps- the maximum frames per second to set.
-
setShowGameMetrics
public void setShowGameMetrics(boolean showGameMetrics) Sets whether to show game metrics.- Parameters:
showGameMetrics- true to show game metrics, false to hide.
-
setExitOnError
public void setExitOnError(boolean exit) Sets whether to exit on error.- Parameters:
exit- true to exit on error, false to continue.
-
showGameMetrics
public boolean showGameMetrics()Checks if game metrics are shown.- Returns:
- true if game metrics are shown, false otherwise.
-
exitOnError
public boolean exitOnError()Checks if the application exits on error.- Returns:
- true if the application exits on error, false otherwise.
-