Class ClientConfiguration

java.lang.Object
de.gurkenlabs.litiengine.configuration.ConfigurationGroup
de.gurkenlabs.litiengine.configuration.ClientConfiguration

public class ClientConfiguration extends ConfigurationGroup
The client configuration contains client specific configuration elements.
  • Method Details

    • getCountry

      public String getCountry()
      Gets the country code.
      Returns:
      the country code.
    • getLanguage

      public String getLanguage()
      Gets the language code.
      Returns:
      the language code.
    • getLocale

      public Locale 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

      public void setCountry(String country)
      Sets the country code.
      Parameters:
      country - the country code to set.
    • setLanguage

      public void setLanguage(String language)
      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.