Class GameOptionsService


  • public class GameOptionsService
    extends java.lang.Object
    Helper service for common option tasks.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2014 Created on Dec 27, 2014
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getGameSpeedList()
      Compile a list of game speeds
      java.util.List<ch.sahits.game.openpatrician.javafx.model.OpenPatricianSpinnerOptionDataModel> getSavegames()
      Retrieve the list of savegames.
      void load​(java.lang.String savegameName)  
      void save​(java.lang.String savegameName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GameOptionsService

        public GameOptionsService()
    • Method Detail

      • getGameSpeedList

        public java.util.List<java.lang.String> getGameSpeedList()
        Compile a list of game speeds
        Returns:
        List of the localized game speeds.
      • getSavegames

        public java.util.List<ch.sahits.game.openpatrician.javafx.model.OpenPatricianSpinnerOptionDataModel> getSavegames()
        Retrieve the list of savegames.
        Returns:
        List for the savegame spinner
      • save

        public void save​(java.lang.String savegameName)
      • load

        public void load​(java.lang.String savegameName)