Class UIFactory
- java.lang.Object
-
- ch.sahits.game.openpatrician.display.service.UIFactory
-
- All Implemented Interfaces:
ch.sahits.game.openpatrician.utilities.IInvalidatable
public class UIFactory extends java.lang.Object implements ch.sahits.game.openpatrician.utilities.IInvalidatableFactory class for various instances.- Author:
- Andi Hotz, (c) Sahits GmbH, 2014 Created on Dec 01, 2014
-
-
Constructor Summary
Constructors Constructor Description UIFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ch.sahits.game.openpatrician.javafx.control.CheatMenugetCheatMenu(ch.sahits.game.openpatrician.model.cheat.ICheatCommand command, javafx.beans.property.ReadOnlyDoubleProperty width)Create the cheat menu control.CreditsScenegetCreditsScene()HanseaticHistoryScenegetHanseaticHistoryScene()InGameOptionsScenegetInGameOptionsScene()IJavaFXControlLoadergetJavaFXControlLoader()LoadGameScenegetLoadGameScene()MainGameScenegetMainGameScene(double width, double heigth)NewGameScenegetNewGameScene()StartupScenegetStartupScene()ch.sahits.game.graphic.image.IDataImageLoadergetXMLImageLoader()Retrieve the XML image loader for the main screenvoidinvalidate()
-
-
-
Method Detail
-
getXMLImageLoader
public ch.sahits.game.graphic.image.IDataImageLoader getXMLImageLoader()
Retrieve the XML image loader for the main screen- Returns:
- image loader for XML defined images
-
getMainGameScene
public MainGameScene getMainGameScene(double width, double heigth)
-
getStartupScene
public StartupScene getStartupScene()
-
getHanseaticHistoryScene
public HanseaticHistoryScene getHanseaticHistoryScene()
-
getCreditsScene
public CreditsScene getCreditsScene()
-
getNewGameScene
public NewGameScene getNewGameScene()
-
getLoadGameScene
public LoadGameScene getLoadGameScene()
-
getInGameOptionsScene
public InGameOptionsScene getInGameOptionsScene()
-
getJavaFXControlLoader
public IJavaFXControlLoader getJavaFXControlLoader()
-
getCheatMenu
public ch.sahits.game.openpatrician.javafx.control.CheatMenu getCheatMenu(ch.sahits.game.openpatrician.model.cheat.ICheatCommand command, javafx.beans.property.ReadOnlyDoubleProperty width)Create the cheat menu control.- Parameters:
command- cheat command that is represented in the cheat menuwidth- of the parent- Returns:
- cheat menu control
-
invalidate
public void invalidate()
- Specified by:
invalidatein interfacech.sahits.game.openpatrician.utilities.IInvalidatable
-
-