public class GameOptionsService extends Object
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private ch.sahits.game.openpatrician.persistence.LoadAndSaveService |
loadAndSave |
private ch.sahits.game.openpatrician.util.l10n.Locale |
locale |
private org.springframework.context.MessageSource |
messageSource |
private static String |
SAVEGAME_DIR |
private static String |
SAVEGAME_FILE_EXTENSTION |
private File |
savegameDir |
| Constructor and Description |
|---|
GameOptionsService() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getGameSpeedList()
Compile a list of game speeds
|
Map<String,String> |
getSavegames()
Retrieve the list of savegames.
|
private void |
init() |
void |
load(String savegameName) |
void |
save(String savegameName) |
private static final String SAVEGAME_DIR
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
@PostConstruct private void init()
public void save(String savegameName)
public void load(String savegameName)
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.