Class ShipyardScenePolygonInitializer
- java.lang.Object
-
- ch.sahits.game.openpatrician.display.gameplay.impl.ScenePolygonInitialzer
-
- ch.sahits.game.openpatrician.display.gameplay.impl.ShipyardScenePolygonInitializer
-
@Component @Lazy @DependentInitialisation(StartNewGameBean.class) public class ShipyardScenePolygonInitializer extends ScenePolygonInitialzer
- Author:
- Andi Hotz, (c) Sahits GmbH, 2013 Created on Dec 13, 2013
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ch.sahits.game.openpatrician.display.gameplay.impl.ScenePolygonInitialzer
ScenePolygonInitialzer.PolygonComparator
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.eventbus.AsyncEventBus
clientEventBus
private ClientViewState
viewState
-
Fields inherited from class ch.sahits.game.openpatrician.display.gameplay.impl.ScenePolygonInitialzer
xmlLoader
-
-
Constructor Summary
Constructors Constructor Description ShipyardScenePolygonInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javafx.event.EventHandler<javafx.scene.input.MouseEvent>
createEventHandler(java.lang.String name)
Create an event handler for the clicking on the polygon with the given name.-
Methods inherited from class ch.sahits.game.openpatrician.display.gameplay.impl.ScenePolygonInitialzer
initialzePolygons
-
-
-
-
Field Detail
-
viewState
@Autowired private ClientViewState viewState
-
clientEventBus
@Autowired @Qualifier("clientEventBus") private com.google.common.eventbus.AsyncEventBus clientEventBus
-
-
Method Detail
-
createEventHandler
protected javafx.event.EventHandler<javafx.scene.input.MouseEvent> createEventHandler(java.lang.String name)
Description copied from class:ScenePolygonInitialzer
Create an event handler for the clicking on the polygon with the given name.- Specified by:
createEventHandler
in classScenePolygonInitialzer
- Parameters:
name
- of the polygon- Returns:
- EventHandler for the mouse click event
-
-