public class GameOptionsService extends Object
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private org.springframework.context.ApplicationContext |
context |
private ch.sahits.game.openpatrician.persistence.LoadAndSaveService |
loadAndSave |
private ch.sahits.game.openpatrician.util.l10n.Locale |
locale |
private ch.sahits.game.openpatrician.util.LocalStorage |
localStorage |
private org.springframework.context.MessageSource |
messageSource |
private static String |
SAVEGAME_FILE_EXTENSTION |
private File |
savegameDir |
private com.google.common.eventbus.AsyncEventBus |
timerEventBus |
| Constructor and Description |
|---|
GameOptionsService() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getGameSpeedList()
Compile a list of game speeds
|
List<OpenPatricianSpinnerOptionDataModel> |
getSavegames()
Retrieve the list of savegames.
|
private void |
init() |
void |
load(String savegameName) |
void |
save(String savegameName) |
private static final String SAVEGAME_FILE_EXTENSTION
@Autowired private ch.sahits.game.openpatrician.util.l10n.Locale locale
@Autowired private org.springframework.context.MessageSource messageSource
@Autowired private ch.sahits.game.openpatrician.persistence.LoadAndSaveService loadAndSave
private File savegameDir
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
@Autowired @Qualifier(value="timerEventBus") private com.google.common.eventbus.AsyncEventBus timerEventBus
@Autowired private org.springframework.context.ApplicationContext context
@Autowired private ch.sahits.game.openpatrician.util.LocalStorage localStorage
@PostConstruct private void init()
public List<OpenPatricianSpinnerOptionDataModel> getSavegames()
public void save(String savegameName)
public void load(String savegameName)
Copyright © 2011-2016 Sahits GmbH. All Rights Reserved.