Class MainGameScene
- java.lang.Object
-
- ch.sahits.game.openpatrician.javafx.OpenPatricianScene
-
- ch.sahits.game.openpatrician.display.scene.MainGameScene
-
public class MainGameScene extends ch.sahits.game.openpatrician.javafx.OpenPatricianScene
-
-
Constructor Summary
Constructors Constructor Description MainGameScene(double width, double height, ch.sahits.game.graphic.image.IImageLoader loader, IJavaFXControlLoader controlLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidheightChange(double oldHeight, double newHeigth)voidinitializeGameView(ch.sahits.game.openpatrician.event.data.NewGameClient newGameDTO)Event handler for initializing the new game when the server is done.voidwidthChange(double oldWidth, double newWidth)
-
-
-
Constructor Detail
-
MainGameScene
public MainGameScene(double width, double height, ch.sahits.game.graphic.image.IImageLoader loader, IJavaFXControlLoader controlLoader)
-
-
Method Detail
-
initializeGameView
public void initializeGameView(ch.sahits.game.openpatrician.event.data.NewGameClient newGameDTO)
Event handler for initializing the new game when the server is done.- Parameters:
newGameDTO- data transfer object.
-
widthChange
public void widthChange(double oldWidth, double newWidth)- Overrides:
widthChangein classch.sahits.game.openpatrician.javafx.OpenPatricianScene
-
heightChange
public void heightChange(double oldHeight, double newHeigth)- Overrides:
heightChangein classch.sahits.game.openpatrician.javafx.OpenPatricianScene
-
-