public class UIFactory extends Object implements ch.sahits.game.openpatrician.IInvalidatable
| Modifier and Type | Class and Description |
|---|---|
private class |
UIFactory.JavaFXControlLoader |
| Modifier and Type | Field and Description |
|---|---|
private org.springframework.context.ApplicationContext |
context |
private IJavaFXControlLoader |
jfxControlLoader |
private ch.sahits.game.openpatrician.collections.NonReplacableMap<String,OpenPatricianScene> |
sceneMap
Scenes must be declared as prototypes as they have constructor arguments, even though they actually
are singletons.
|
| Constructor and Description |
|---|
UIFactory() |
| Modifier and Type | Method and Description |
|---|---|
CreditsScene |
getCreditsScene() |
HanseaticHistoryScene |
getHanseaticHistoryScene() |
InGameOptionsScene |
getInGameOptionsScene() |
IJavaFXControlLoader |
getJavaFXControlLoader() |
LoadGameScene |
getLoadGameScene() |
MainGameScene |
getMainGameScene(double width,
double heigth) |
NewGameScene |
getNewGameScene() |
StartupScene |
getStartupScene() |
IDataImageLoader |
getXMLImageLoader()
Retrieve the XML image loader for the main screen
|
private void |
init() |
void |
invalidate() |
@Autowired private org.springframework.context.ApplicationContext context
private final ch.sahits.game.openpatrician.collections.NonReplacableMap<String,OpenPatricianScene> sceneMap
private IJavaFXControlLoader jfxControlLoader
@PostConstruct private void init()
public IDataImageLoader getXMLImageLoader()
public MainGameScene getMainGameScene(double width, double heigth)
public StartupScene getStartupScene()
public HanseaticHistoryScene getHanseaticHistoryScene()
public CreditsScene getCreditsScene()
public NewGameScene getNewGameScene()
public LoadGameScene getLoadGameScene()
public InGameOptionsScene getInGameOptionsScene()
public IJavaFXControlLoader getJavaFXControlLoader()
public void invalidate()
invalidate in interface ch.sahits.game.openpatrician.IInvalidatableCopyright © 2011-2017 Sahits GmbH. All Rights Reserved.