Class GameOptionsService
- java.lang.Object
-
- ch.sahits.game.openpatrician.display.service.GameOptionsService
-
public class GameOptionsService extends java.lang.ObjectHelper service for common option tasks.- Author:
- Andi Hotz, (c) Sahits GmbH, 2014 Created on Dec 27, 2014
-
-
Constructor Summary
Constructors Constructor Description GameOptionsService()
-
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 speedsjava.util.List<ch.sahits.game.openpatrician.javafx.model.OpenPatricianSpinnerOptionDataModel>getSavegames()Retrieve the list of savegames.voidload(java.lang.String savegameName)voidsave(java.lang.String savegameName)
-
-
-
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)
-
-