Class ArmoryPolygonInitializer
- java.lang.Object
-
- ch.sahits.game.openpatrician.display.gameplay.impl.ScenePolygonInitialzer
-
- ch.sahits.game.openpatrician.display.gameplay.impl.ArmoryPolygonInitializer
-
@Component @Lazy @DependentInitialisation(ch.sahits.game.openpatrician.model.initialisation.StartNewGameBean.class) public class ArmoryPolygonInitializer extends ScenePolygonInitialzer
Initializer for the armory scene.- Author:
- Andi Hotz, (c) Sahits GmbH, 2017 Created on Jul 17, 2017
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ch.sahits.game.openpatrician.display.gameplay.impl.ScenePolygonInitialzer
ScenePolygonInitialzer.PolygonComparator
-
-
Field Summary
-
Fields inherited from class ch.sahits.game.openpatrician.display.gameplay.impl.ScenePolygonInitialzer
xmlLoader
-
-
Constructor Summary
Constructors Constructor Description ArmoryPolygonInitializer()
-
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
-
-
-
-
Method Detail
-
createEventHandler
protected javafx.event.EventHandler<javafx.scene.input.MouseEvent> createEventHandler(java.lang.String name)
Description copied from class:ScenePolygonInitialzerCreate an event handler for the clicking on the polygon with the given name.- Specified by:
createEventHandlerin classScenePolygonInitialzer- Parameters:
name- of the polygon- Returns:
- EventHandler for the mouse click event
-
-