Class LoadGameScene
- java.lang.Object
-
- ch.sahits.game.openpatrician.javafx.OpenPatricianScene
-
- ch.sahits.game.openpatrician.display.scene.BaseStartupScene
-
- ch.sahits.game.openpatrician.display.scene.LoadGameScene
-
public class LoadGameScene extends BaseStartupScene
Scene for initally selecting a savegame, load it and start it.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ch.sahits.game.openpatrician.display.scene.BaseStartupScene
BaseStartupScene.LabelHoverChangeListener
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.eventbus.AsyncEventBus
clientServerEventBus
private Date
gameDate
private GameFactory
gameFactory
private GameOptionsService
gameOptions
private Locale
locale
private OpenPatricianSpinner
lodableGames
private org.springframework.context.MessageSource
messageSource
private SceneChangeable
sceneChangeable
private SceneChangeService
sceneChanger
private com.google.common.eventbus.AsyncEventBus
timerEventBus
private UIFactory
uiFactory
-
Fields inherited from class ch.sahits.game.openpatrician.display.scene.BaseStartupScene
paperScroll, untransformedHeight, untransformedWidth
-
-
Constructor Summary
Constructors Constructor Description LoadGameScene()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
changeScene(OpenPatricianScene scene)
private void
createControls()
private javafx.event.EventHandler<javafx.scene.input.MouseEvent>
createLoadAction()
SceneChangeable
getSceneChangeable()
protected java.lang.String
getStyleSheetFilename()
Define the stylesheet name to be applied for this scene.void
handleGameStateChange(GameStateChange stateChange)
void
setSceneChangeable(SceneChangeable sceneChangeable)
private void
unregister()
-
Methods inherited from class ch.sahits.game.openpatrician.display.scene.BaseStartupScene
createBaseSceneLayout, createPerspectiveTransform
-
Methods inherited from class ch.sahits.game.openpatrician.javafx.OpenPatricianScene
heightChange, widthChange
-
-
-
-
Field Detail
-
uiFactory
@Autowired private UIFactory uiFactory
-
gameFactory
@Autowired private GameFactory gameFactory
-
locale
@Autowired private Locale locale
-
messageSource
@Autowired private org.springframework.context.MessageSource messageSource
-
gameOptions
@Autowired private GameOptionsService gameOptions
-
gameDate
@Autowired private Date gameDate
-
clientServerEventBus
@Autowired @Qualifier("serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
-
timerEventBus
@Autowired @Qualifier("timerEventBus") private com.google.common.eventbus.AsyncEventBus timerEventBus
-
sceneChanger
@Autowired private SceneChangeService sceneChanger
-
sceneChangeable
private SceneChangeable sceneChangeable
-
lodableGames
private OpenPatricianSpinner lodableGames
-
-
Method Detail
-
getSceneChangeable
public SceneChangeable getSceneChangeable()
- Overrides:
getSceneChangeable
in classBaseStartupScene
-
setSceneChangeable
public void setSceneChangeable(SceneChangeable sceneChangeable)
- Overrides:
setSceneChangeable
in classBaseStartupScene
-
getStyleSheetFilename
protected java.lang.String getStyleSheetFilename()
Description copied from class:BaseStartupScene
Define the stylesheet name to be applied for this scene.- Specified by:
getStyleSheetFilename
in classBaseStartupScene
- Returns:
- file name for the style sheet.
-
unregister
@PreDestroy private void unregister()
-
createControls
@PostConstruct private void createControls()
-
handleGameStateChange
public void handleGameStateChange(GameStateChange stateChange)
-
createLoadAction
private javafx.event.EventHandler<javafx.scene.input.MouseEvent> createLoadAction()
-
changeScene
public void changeScene(OpenPatricianScene scene)
- Overrides:
changeScene
in classBaseStartupScene
-
-