public class UIFactory extends Object
| 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,javafx.scene.Scene> |
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(double width,
double heigth) |
HanseaticHistoryScene |
getHanseaticHistoryScene(double width,
double heigth) |
InGameOptionsScene |
getInGameOptionsScene(double width,
double heigth) |
IJavaFXControlLoader |
getJavaFXControlLoader() |
MainGameScene |
getMainGameScene(double width,
double heigth) |
NewGameScene |
getNewGameScene(double width,
double heigth) |
StartupScene |
getStartupScene(double width,
double heigth) |
IDataImageLoader |
getXMLImageLoader()
Retrieve the XML image loader for the main screen
|
private void |
init() |
@Autowired private org.springframework.context.ApplicationContext context
private final ch.sahits.game.openpatrician.collections.NonReplacableMap<String,javafx.scene.Scene> sceneMap
private IJavaFXControlLoader jfxControlLoader
@PostConstruct private void init()
public IDataImageLoader getXMLImageLoader()
public MainGameScene getMainGameScene(double width, double heigth)
public StartupScene getStartupScene(double width, double heigth)
public HanseaticHistoryScene getHanseaticHistoryScene(double width, double heigth)
public CreditsScene getCreditsScene(double width, double heigth)
public NewGameScene getNewGameScene(double width, double heigth)
public InGameOptionsScene getInGameOptionsScene(double width, double heigth)
public IJavaFXControlLoader getJavaFXControlLoader()
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.