Class InGameOptionsScene
- java.lang.Object
-
- ch.sahits.game.openpatrician.javafx.OpenPatricianScene
-
- ch.sahits.game.openpatrician.display.scene.InGameOptionsScene
-
public class InGameOptionsScene extends OpenPatricianScene
Options that can be accessed from within the game.- Author:
- Andi Hotz, (c) Sahits GmbH, 2014 Created on Dec 27, 2014
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.eventbus.AsyncEventBus
clientServerEventBus
private EGameSpeed
currentSpeed
private Date
date
private IFontLoader
fontLoader
private IGame
game
private GameFactory
gameFactory
private GameOptionsService
gameOptions
private Locale
locale
private OpenPatricianSpinner
lodableGames
private org.springframework.context.MessageSource
messageSource
private OpenPatricianWoodenTextInput
newSaveGame
private OpenPatricianSpinner
saveableGames
private SceneChangeable
sceneChangeable
private ITrackPlayer
soundPlayer
private OpenPatricianSlider
speed
private com.google.common.eventbus.AsyncEventBus
timerEventBus
private UIFactory
uiFactory
-
Constructor Summary
Constructors Constructor Description InGameOptionsScene()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
createControls()
private javafx.event.EventHandler<javafx.scene.input.MouseEvent>
createLoadAction()
private javafx.event.EventHandler<javafx.scene.input.MouseEvent>
createSaveAction(OpenPatricianSpinner saveableGames, OpenPatricianWoodenTextInput newSaveGame, OpenPatricianStoneButton back)
private javafx.event.EventHandler<javafx.scene.input.MouseEvent>
getBackEvent()
SceneChangeable
getSceneChangeable()
private java.lang.String
getStyleSheetFilename()
void
handleGameStateChange(GameStateChange stateChange)
private void
initializeSavedGames()
Initialize the lists that depend on the saved games.void
initializeState()
void
setSceneChangeable(SceneChangeable sceneChangeable)
private void
unregister()
-
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
-
date
@Autowired private Date date
-
fontLoader
@Autowired private IFontLoader fontLoader
-
soundPlayer
@Autowired private ITrackPlayer soundPlayer
-
clientServerEventBus
@Autowired @Qualifier("serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
-
timerEventBus
@Autowired @Qualifier("timerEventBus") private com.google.common.eventbus.AsyncEventBus timerEventBus
-
game
private IGame game
-
sceneChangeable
private SceneChangeable sceneChangeable
-
speed
private OpenPatricianSlider speed
-
currentSpeed
private EGameSpeed currentSpeed
-
lodableGames
private OpenPatricianSpinner lodableGames
-
saveableGames
private OpenPatricianSpinner saveableGames
-
newSaveGame
private OpenPatricianWoodenTextInput newSaveGame
-
-
Method Detail
-
getSceneChangeable
public SceneChangeable getSceneChangeable()
-
setSceneChangeable
public void setSceneChangeable(SceneChangeable sceneChangeable)
-
getStyleSheetFilename
private java.lang.String getStyleSheetFilename()
-
unregister
@PreDestroy private void unregister()
-
createControls
@PostConstruct private void createControls()
-
initializeSavedGames
private void initializeSavedGames()
Initialize the lists that depend on the saved games.
-
initializeState
public void initializeState()
-
getBackEvent
private javafx.event.EventHandler<javafx.scene.input.MouseEvent> getBackEvent()
-
createSaveAction
private javafx.event.EventHandler<javafx.scene.input.MouseEvent> createSaveAction(OpenPatricianSpinner saveableGames, OpenPatricianWoodenTextInput newSaveGame, OpenPatricianStoneButton back)
-
createLoadAction
private javafx.event.EventHandler<javafx.scene.input.MouseEvent> createLoadAction()
-
handleGameStateChange
public void handleGameStateChange(GameStateChange stateChange)
-
-